Browse Source

Forward PBR emit albedo color instead of white.

clementlandrin 1 year ago
parent
commit
e97861fba5
1 changed files with 1 additions and 1 deletions
  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;
 		}