diff options
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) { |
