Parcourir la source

Lut with environment default format.

clementlandrin il y a 2 ans
Parent
commit
c7d2e28497
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);
 		var t : h3d.mat.Texture = @:privateAccess engine.resCache.get(IrradLut);
 		if( t != null )
 		if( t != null )
 			return t;
 			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 ) {
 		if( LUT_PIXELS == null ) {
 			computeIrradLut(t);
 			computeIrradLut(t);
 			LUT_PIXELS = t.capturePixels();
 			LUT_PIXELS = t.capturePixels();