diff options
Diffstat (limited to 'brdf.cginc')
| -rwxr-xr-x | brdf.cginc | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |
