瀏覽代碼

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

clementlandrin 2 年之前
父節點
當前提交
9a7b3ac97f
共有 1 個文件被更改,包括 1 次插入1 次删除
  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.);