summaryrefslogtreecommitdiffstats
path: root/brdf.cginc
diff options
context:
space:
mode:
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