Преглед изворни кода

Fixed shader compile error for PlayBook.

Darryl Gough пре 14 година
родитељ
комит
9ed865709e
2 измењених фајлова са 0 додато и 4 уклоњено
  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;