Jump to content

  • Log In with Google      Sign In   
  • Create Account


mafian89

Member Since 18 Apr 2013
Offline Last Active Jan 23 2014 12:25 PM
-----

Posts I've Made

In Topic: GL_COMPARE_TO_REF breaks my everything!

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;
 

PARTNERS