Closed ajon542 closed 8 years ago
This is going to include going through each shader and completely understanding the calculations and what "space" they are occurring in. At first glance, it looked like some calculations were being done in two different spaces, this does not sound correct.
Everything looks to be calculated in the same space.
Because the shaders have mostly been copied from the internet, there is no common naming convention between them. For example in some places we are doing calculations and calling them "world space" and in others we are calling them "model space". These are essentially the same thing.
The following website goes into detail: http://www.matrix44.net/cms/notes/opengl-3d-graphics/coordinate-systems-in-opengl