diff options
| author | yum <yum.food.vr@gmail.com> | 2024-07-18 17:13:06 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-07-18 17:13:06 -0700 |
| commit | 0592c85cd172369625e084be6b037f8c122cbf16 (patch) | |
| tree | fdb900100ff0f8b9808a76b2d4fa6952c945f42f /pbr.cginc | |
| parent | 17c5f581851799676af414ae7f35bc20b295e0b2 (diff) | |
Temporarily disable direct lighting in outlines
Diffstat (limited to 'pbr.cginc')
| -rw-r--r-- | pbr.cginc | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -174,7 +174,12 @@ float4 getLitColor( float4 albedo, float3 worldPos, float3 normal, - float metallic, float smoothness, float2 uv, float ao, + float metallic, + float smoothness, + float2 uv, + float ao, + // hack while i figure out view-dependent flickering in outlines + bool enable_direct, v2f i) { float3 specular_tint; @@ -218,7 +223,7 @@ float4 getLitColor( } #endif - direct_light.color *= _Lighting_Factor * _Direct_Lighting_Factor; + direct_light.color *= _Lighting_Factor * _Direct_Lighting_Factor * enable_direct; indirect_light.specular *= _Lighting_Factor * _Indirect_Specular_Lighting_Factor; indirect_light.diffuse *= _Lighting_Factor * _Indirect_Diffuse_Lighting_Factor; |
