Nicolas Cannasse 4 vuotta sitten
vanhempi
commit
9791fa8f1e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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() {