15 lines
452 B
NASM
15 lines
452 B
NASM
temp[3].x = ME_SIN temp[0].___x ;
|
|
temp[3].y = ME_COS temp[0].___x ;
|
|
alt_temp[3].z = ME_SIN temp[0].___y ;
|
|
|
|
-- first rotation
|
|
temp[1].yz = VE_MUL input[0]._-zz_ temp[3]._xy_ ,
|
|
alt_temp[3].w = ME_COS temp[0].y_ ;
|
|
|
|
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_ alt_temp[3].z_w_ ;
|
|
|
|
temp[2].xyz = VE_MAD temp[1].xyx_ alt_temp[3].w1z_ temp[2].x0z_ ;
|