* Fix two more un-compliant PostShadow shaders

This commit is contained in:
shadowislord 2014-06-05 23:40:34 -04:00
parent 65094e9ca1
commit 844e468eac
2 changed files with 3 additions and 3 deletions

View File

@ -61,8 +61,8 @@ void main(){
projCoord0, projCoord1, projCoord2, projCoord3);
#else
//spotlight
if(lightDot < 0){
outFragColor = vec4(1.0);
if(lightDot < 0.0){
gl_FragColor = vec4(1.0);
return;
}
shadow = getSpotLightShadows(m_ShadowMap0,projCoord0);

View File

@ -59,7 +59,7 @@ void main(){
#if (!defined(POINTLIGHT) && !defined(PSSM))
vec3 lightDir = worldPos.xyz - m_LightPos;
if( dot(m_LightDir,lightDir)<0){
if( dot(m_LightDir,lightDir) < 0.0){
gl_FragColor = color;
return;
}