Nicolas Cannasse %!s(int64=4) %!d(string=hai) anos
pai
achega
9791fa8f1e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      h3d/shader/pbr/Lighting.hx

+ 1 - 1
h3d/shader/pbr/Lighting.hx

@@ -40,7 +40,7 @@ class Indirect extends PropsDefinition {
 		}
 
 		function getEnvDiffuse( normal : Vec3 ) : Vec3 {
-			return irrDiffuse.textureLod( rotateNormal(normal), roughness * irrSpecularLevels).rgb;
+			return irrDiffuse.get( rotateNormal(normal) ).rgb;
 		}
 
 		function fragment() {