Explorar o código

Normal GBuffer is supposed to be RGBA16F unless MRT_low compilation flag is enabled.

clementlandrin %!s(int64=2) %!d(string=hai) anos
pai
achega
9a7b3ac97f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      h3d/scene/pbr/Renderer.hx

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

@@ -395,7 +395,7 @@ class Renderer extends h3d.scene.Renderer {
 
 	function initTextures() {
 		textures.albedo = allocTarget("albedo", true, 1.);
-		textures.normal = allocTarget("normal", true, 1., RGB10A2);
+		textures.normal = allocTarget("normal", true, 1., #if MRT_low RGB10A2 #else RGBA16F #end);
 		textures.pbr = allocTarget("pbr", true, 1.);
 		#if !MRT_low
 		textures.other = allocTarget("other", true, 1.);