浏览代码

Forward PBR emit albedo color instead of white.

clementlandrin 1 年之前
父节点
当前提交
e97861fba5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/shader/pbr/DefaultForward.hx

+ 1 - 1
h3d/shader/pbr/DefaultForward.hx

@@ -223,7 +223,7 @@ class DefaultForward extends hxsl.Shader {
 				lightAccumulation += indirectLighting();
 
 			// Emissive Pass
-			lightAccumulation += emissive * emissivePower;
+			lightAccumulation += emissive * emissivePower * pixelColor.rgb;
 
 			return lightAccumulation;
 		}