Nicolas Cannasse 4 年 前
コミット
9791fa8f1e
1 ファイル変更1 行追加1 行削除
  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() {