Python Forum
Creating shadow in OpenGL with normal? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Creating shadow in OpenGL with normal? (/thread-3063.html)



Creating shadow in OpenGL with normal? - hsunteik - Apr-27-2017

The basic shadowmap algorithm consists in two passes. First, the scene is rendered from the point of view of the light. Only the depth of each fragment is computed. Next, the scene is rendered as usual, but with an extra test to see it the current fragment is in the shadow.
But what I want to do is using the object normal to create shadow ,instead of the above shadow mapping algorithm,how do I do it?
my code here