Ver código fonte

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

clementlandrin 2 anos atrás
pai
commit
9a7b3ac97f
1 arquivos alterados com 1 adições e 1 exclusões
  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.);