r500/verbatim/cube_rotate_sin_cos.vs.asm
2025-11-11 18:34:41 -06:00

15 lines
447 B
NASM

temp[3].x = ME_SIN temp[0].___x ;
temp[3].y = ME_COS temp[0].___x ;
temp[3].z = ME_SIN temp[0].___y ;
temp[3].w = ME_COS temp[0].___y ;
-- first rotation
temp[1].yz = VE_MUL input[0]._-zz_ temp[3]._xy_ ;
temp[1].xyz = VE_MAD input[0].xyy_ temp[3].1yx_ temp[1].0yz_ ;
-- second rotation
temp[2].xz = VE_MUL temp[1].-z_z_ temp[3].z_w_ ;
temp[2].xyz = VE_MAD temp[1].xyx_ temp[3].w1z_ temp[2].x0z_ ;