Mojo2 Matrix + Lighting
Monkey Forums/Monkey Programming/Mojo2 Matrix + Lighting
| ||
Hi, I'm playing with Mojo2 lighting. I noticed that the canvas.SetLightPosition is device units (the current matrix isn't applied). With that known, how can I take the matrix coordinates and translate them to device units? In my specific example, I am pushing matrices to offset the screen and object positions. Now I'd like to make a light at a specific objects position but I am lost as to how to translate the object coordinates to device units. The screen has been scaled ( virtual resolutions) and translated. Can anyone assist, or point me in the right direction? Thank you! |