Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualmafian89

Posted 18 April 2013 - 04:12 PM

Well, when you want to use 

 

glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_COMPARE_MODE, GL_COMPARE_TO_REF);
 

Your texture sampler should be

 

 

uniform sampler2DShadow ShadowMap;
 

instead of

 

 

 

uniform sampler2D ShadowMap;
 

#1mafian89

Posted 18 April 2013 - 04:12 PM

Well, when you want to use 

 

glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_COMPARE_MODE, GL_COMPARE_TO_REF);
 

Your textuer sampler should be

 

 

uniform sampler2DShadow ShadowMap;
 

instead of

 

 

 

uniform sampler2D ShadowMap;
 

PARTNERS