diff options
| author | yum <yum.food.vr@gmail.com> | 2024-08-22 02:15:28 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-08-22 02:15:28 -0700 |
| commit | 3625c7c4e2f0d6e0e127ee2102aa5a8f6f0346c8 (patch) | |
| tree | 7340678de073e2ab5377c695da00028d24c87be0 /pbr.cginc | |
| parent | 6647234da5e504b48cd2a72c52e24e9696ff9ee9 (diff) | |
Add second indirect specular lighting factor
First one is probably being used for animations. Second one is static.
Diffstat (limited to 'pbr.cginc')
| -rw-r--r-- | pbr.cginc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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. |
