Parcourir la source

Fixed shader compile error for PlayBook.

Darryl Gough il y a 14 ans
Parent
commit
9ed865709e
2 fichiers modifiés avec 0 ajouts et 4 suppressions
  1. 0 2
      gameplay/res/shaders/colored.fsh
  2. 0 2
      gameplay/res/shaders/diffuse.fsh

+ 0 - 2
gameplay/res/shaders/colored.fsh

@@ -22,8 +22,6 @@ void lighting(vec3 normalVector, vec3 lightDirection, float attenuation)
 
     // Diffuse
 	float ddot = dot(normalVector, lightDirection);
-	if (ddot < 0)
-		ddot = abs(ddot) * 0.5f; // simulate light bounce at half intensity
     float diffuseIntensity = attenuation * ddot;
     diffuseIntensity = max(0.0, diffuseIntensity);
     _diffuseColor = u_lightColor * _baseColor.rgb * diffuseIntensity;

+ 0 - 2
gameplay/res/shaders/diffuse.fsh

@@ -23,8 +23,6 @@ void lighting(vec3 normalVector, vec3 lightDirection, float attenuation)
 
     // Diffuse
 	float ddot = dot(normalVector, lightDirection);
-	if (ddot < 0)
-		ddot = abs(ddot) * 0.5f; // simulate light bounce at half intensity
     float diffuseIntensity = attenuation * ddot;
     diffuseIntensity = max(0.0, diffuseIntensity);
     _diffuseColor = u_lightColor * _baseColor.rgb * diffuseIntensity;