diff options
| author | yum <yum.food.vr@gmail.com> | 2025-11-11 20:30:19 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-11-11 20:30:19 -0800 |
| commit | 73686635d2e82659853a227338f0a826e32c3ab2 (patch) | |
| tree | 1226756792776b41b1ee64c932ca225e919fcfe9 /lighting.cginc | |
| parent | c8c4b2e7cf58e7813bebf80e43426e3b32bf1ff0 (diff) | |
lighting tweaks - fix point/spot in domain shader, fix falloff
Diffstat (limited to 'lighting.cginc')
| -rw-r--r-- | lighting.cginc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lighting.cginc b/lighting.cginc index 8d51cda..d72540d 100644 --- a/lighting.cginc +++ b/lighting.cginc @@ -87,8 +87,7 @@ float getShadowAttenuation(v2f i) float4 getDirectLightColorIntensity() { // Properly separate light color from intensity like filamented if (_LightColor0.w <= 0) return float4(0, 0, 0, 0); - _LightColor0 += 1e-6f; - return float4(_LightColor0.xyz / _LightColor0.w, _LightColor0.w); + return float4(_LightColor0.xyz, _LightColor0.w); } float3 getIndirectSpecular(v2f i, float roughness, float3 view_dir, float3 reflect_dir) { |
