From 73686635d2e82659853a227338f0a826e32c3ab2 Mon Sep 17 00:00:00 2001 From: yum Date: Tue, 11 Nov 2025 20:30:19 -0800 Subject: lighting tweaks - fix point/spot in domain shader, fix falloff --- 3ner.cginc | 2 -- lighting.cginc | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/3ner.cginc b/3ner.cginc index ca21ac3..4df5366 100644 --- a/3ner.cginc +++ b/3ner.cginc @@ -195,8 +195,6 @@ v2f domain( UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o); #if defined(SHADOW_CASTER_PASS) //TRANSFER_SHADOW_CASTER_NORMALOFFSET(o); -#else - TRANSFER_SHADOW(o); #endif return o; } 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) { -- cgit v1.2.3