summaryrefslogtreecommitdiffstats
path: root/brdf.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2026-02-26 14:21:05 -0800
committeryum <yum.food.vr@gmail.com>2026-02-26 14:21:05 -0800
commit75439d0d6437a10b00b240aba75e9f12de20150b (patch)
treeaf30dceabad1b486f6411c8e89e3656887e55fff /brdf.cginc
parent5460dbc62fe6f404cb244410af949864cce286f5 (diff)
Add emissions, remove impostor code
Diffstat (limited to 'brdf.cginc')
-rwxr-xr-xbrdf.cginc7
1 files changed, 6 insertions, 1 deletions
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