浏览代码

Lut with environment default format.

clementlandrin 2 年之前
父节点
当前提交
c7d2e28497
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/scene/pbr/Environment.hx

+ 1 - 1
h3d/scene/pbr/Environment.hx

@@ -254,7 +254,7 @@ class Environment {
 		var t : h3d.mat.Texture = @:privateAccess engine.resCache.get(IrradLut);
 		if( t != null )
 			return t;
-		t = new h3d.mat.Texture(128, 128, [Target], RGBA32F);
+		t = new h3d.mat.Texture(128, 128, [Target], DEFAULT_FORMAT);
 		if( LUT_PIXELS == null ) {
 			computeIrradLut(t);
 			LUT_PIXELS = t.capturePixels();