소스 검색

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();