Explorar o código

Lut with environment default format.

clementlandrin %!s(int64=2) %!d(string=hai) anos
pai
achega
c7d2e28497
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();