* Fix two more un-compliant PostShadow shaders

experimental
shadowislord 11 years ago
parent 65094e9ca1
commit 844e468eac
  1. 4
      jme3-core/src/main/resources/Common/MatDefs/Shadow/PostShadow.frag
  2. 2
      jme3-core/src/main/resources/Common/MatDefs/Shadow/PostShadowFilter.frag

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

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

Loading…
Cancel
Save