Python Forum

Full Version: Creating shadow in OpenGL with normal?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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