From 3625c7c4e2f0d6e0e127ee2102aa5a8f6f0346c8 Mon Sep 17 00:00:00 2001 From: yum Date: Thu, 22 Aug 2024 02:15:28 -0700 Subject: Add second indirect specular lighting factor First one is probably being used for animations. Second one is static. --- pbr.cginc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pbr.cginc') diff --git a/pbr.cginc b/pbr.cginc index 371e82f..abcd1cd 100644 --- a/pbr.cginc +++ b/pbr.cginc @@ -284,7 +284,9 @@ float4 getLitColor( indirect_light.diffuse[2] = sum_brightness * brightness_proportions[1]; direct_light.color[2] *= _Lighting_Factor * _Direct_Lighting_Factor * enable_direct; - indirect_light.specular[2] *= _Lighting_Factor * _Indirect_Specular_Lighting_Factor; + indirect_light.specular[2] *= _Lighting_Factor * + _Indirect_Specular_Lighting_Factor * + _Indirect_Specular_Lighting_Factor2; indirect_light.diffuse[2] *= _Lighting_Factor * _Indirect_Diffuse_Lighting_Factor; // Specular has to be clamped separately to avoid artifacting. -- cgit v1.2.3