Sign in to follow this  

GLSL shadow mapping

Recommended Posts

hello, if i am not mistaken in order to do shadowmapping with GLSL you need to generate the texture-coordinates for the depth-comparison using the lightviewprojection-matrix from the shadow-pass. usually you do this with glTexGen, right? now is there a way to generate those coordinates by the shader itself? i.e. without passing those as uniforms to the shader? if so, how? thanks!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this