Procházet zdrojové kódy

Forward PBR emit albedo color instead of white.

clementlandrin před 1 rokem
rodič
revize
e97861fba5
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;
 		}