Nicolas Cannasse há 4 anos atrás
pai
commit
9791fa8f1e
1 ficheiros alterados com 1 adições e 1 exclusões
  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() {