diff options
Diffstat (limited to 'sdl/GL_notes.txt')
-rw-r--r-- | sdl/GL_notes.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sdl/GL_notes.txt b/sdl/GL_notes.txt index 59267e0..f012068 100644 --- a/sdl/GL_notes.txt +++ b/sdl/GL_notes.txt @@ -56,3 +56,11 @@ Pipeline glDrawArrays() || glDrawElements() glDisableClientState() +Shadowmap +- getting the depth buffer from lights point of view of the scene, we don't swap + we only care about raw geometry + we regenerate the shadow map if the light or boject moves, or window size changes + first we draw the scene with dim lighting, then we double the the values of lighting + one depth buffer is written to the backbuffer, we retrieve that into a texture, then + lots of magic is done to project the texture/shadow map back into the final scene + |