Re: Transformations in Shaders
Posted by goosey on Apr 13, 2021; 3:47am
URL: https://forum.jogamp.org/Transformations-in-Shaders-tp4041109p4041111.html
I reworked my renderer based on the example you gave me yet I still get problems.
The issue seems to be linked with the camera's transformation.
One thing that I discovered which is very interesting is that in the shader, z coordinates must be inside the range -1 to 1, but the camera transformations bring the shape outside this range which makes the object only viewable at the origin of the world.