Get Screen Position of an Object (Model View Projection Matrix)


    Mar 04 2019 | 9:58 pm
    Hi all, I would like to get the screen position of a light source for a shader that I'm implementing. How would you go to achieve that? Probably I should get the Model View Projection Matrix but am not sure from where to get it. I remember that jit.gl.camera gives us some matrices, but I'm not sure it gives also the one for screen transform. If somebody can help would be appreciated, thank you!

    • Mar 07 2019 | 2:17 pm
      Solved by using worldtoscreen and linking the jit.gl.camera to the real render context of jit.world