I need some help with my phong shading. I use opentk, C# and C++ (for the shaders).
I have to implement a light in my scene. The position of the light has to be indicated with this red cube in the middle of my scene. The calculation has to be done with phong shading.
The image below shows how the result should look like:
The image below shows how my current scene looks like:
Here is my code:
The main problems: the light position has a really strange behaviour, the light doesn’t have any impact on the second half of the plane and no impact on the character and the shading doesn’t really look like a phong shading.
I really don’t now what I am doing wrong.
I hope anyone of you can help me. That would be really great.