Hello. I am trying to reproduce native camera.WorldToViewportPoint function, for projecting mesh vertices to viewport. I write colors to texture for visualisation. So, here is what i've tried:
1) Transform vertex position to worldspace using TransformPoint, then use WorldToViewport
And as...
Trying to reproduce WorldToViewportPoint function
1) Transform vertex position to worldspace using TransformPoint, then use WorldToViewport
Code (CSharp):
Trying to reproduce WorldToViewportPoint function