diff options
-rw-r--r-- | sdl/GL_notes.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sdl/GL_notes.txt b/sdl/GL_notes.txt index 29e2942..c22d743 100644 --- a/sdl/GL_notes.txt +++ b/sdl/GL_notes.txt @@ -56,7 +56,7 @@ Pipeline glDrawArrays() || glDrawElements() glDisableClientState() -Shadowmap +Shadow Mapping - 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 object moves, or window size changes @@ -64,3 +64,7 @@ Shadowmap once 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 +Shaders +- VP: to mimick fixed functionality, multiply incoming vertex my MVP (modelview/projection matrices) + if no transfomration took place, just transfer the vertex data into next stage, clipping AFAIK + |