ajon542 / GameEngine

Experimenting with OpenTK inside WPF
0 stars 0 forks source link

Clean up the shaders #11

Closed ajon542 closed 8 years ago

ajon542 commented 8 years ago

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

ajon542 commented 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.

ajon542 commented 8 years ago

Everything looks to be calculated in the same space.