Procházet zdrojové kódy

[RENDERER] Adding custom1 and custom2 to output.

clandrin před 4 roky
rodič
revize
a957b500e5
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      h3d/scene/pbr/Renderer.hx

+ 1 - 1
h3d/scene/pbr/Renderer.hx

@@ -89,7 +89,7 @@ class Renderer extends h3d.scene.Renderer {
 		Value("output.color"),
 		Vec4([Value("output.normal",3),ALPHA]),
 		Vec4([Value("output.metalness"), Value("output.roughness"), Value("output.occlusion"), ALPHA]),
-		Vec4([Value("output.emissive"), Const(0), Const(0), ALPHA]),
+		Vec4([Value("output.emissive"), Value("output.custom1"), Value("output.custom2"), ALPHA]),
 		Vec4([Value("output.depth"), Const(0), Const(0), ALPHA])
 	]);
 	var decalsOutput = new h3d.pass.Output("decals",[