Sign in to follow this  
MindWipe

Shadowmap clamping?

Recommended Posts

MindWipe    940
That image shows quite well what my problem is. I need it to clamp correctly to the edge. Shouldn't: Gl.glTexParameteri(Gl.GL_TEXTURE_2D, Gl.GL_TEXTURE_WRAP_S, Gl.GL_CLAMP_TO_EDGE); Gl.glTexParameteri(Gl.GL_TEXTURE_2D, Gl.GL_TEXTURE_WRAP_T, Gl.GL_CLAMP_TO_EDGE); have done the job? (When set on the shadowmap) /MindWipe

Share this post


Link to post
Share on other sites
zedz    291
set the border to whatevre u want it to be
+ use GL_CLAMP_TO_BORDER

glTexParameterfv( texture_target, GL_TEXTURE_BORDER_COLOR, VEC4(1,1,1,1));

Share this post


Link to post
Share on other sites
MindWipe    940
Quote:
Original post by zedz
set the border to whatevre u want it to be
+ use GL_CLAMP_TO_BORDER

glTexParameterfv( texture_target, GL_TEXTURE_BORDER_COLOR, VEC4(1,1,1,1));


Thanks! I noticed the problem was actualy just that the border of the shadow map were not completely dark.

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