From 75439d0d6437a10b00b240aba75e9f12de20150b Mon Sep 17 00:00:00 2001 From: yum Date: Thu, 26 Feb 2026 14:21:05 -0800 Subject: Add emissions, remove impostor code --- brdf.cginc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'brdf.cginc') diff --git a/brdf.cginc b/brdf.cginc index 0e1cc02..d73bde8 100755 --- a/brdf.cginc +++ b/brdf.cginc @@ -177,7 +177,12 @@ float4 brdf(Pbr pbr, LightData data) { #endif specular *= data.common.spec_ao; - return float4(diffuse + specular, 1); +#if defined(_EMISSIONS) && defined(FORWARD_BASE_PASS) + float3 emission = pbr.emission; +#else + float3 emission = 0; +#endif + return float4(diffuse + specular + emission, 1); } #endif // __BRDF_INC -- cgit v1.2.3