diff options
| author | yum <yum.food.vr@gmail.com> | 2026-02-26 14:21:05 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-02-26 14:21:05 -0800 |
| commit | 75439d0d6437a10b00b240aba75e9f12de20150b (patch) | |
| tree | af30dceabad1b486f6411c8e89e3656887e55fff /brdf.cginc | |
| parent | 5460dbc62fe6f404cb244410af949864cce286f5 (diff) | |
Add emissions, remove impostor code
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 |
