diff options
| author | yum <yum.food.vr@gmail.com> | 2024-12-10 17:54:59 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-12-10 17:54:59 -0800 |
| commit | 3b0aba19021e0288905e0f9b8e5398bbf8d6f003 (patch) | |
| tree | ff1e821b63510217deca230f6f9f5e57d51444f4 /pbr.cginc | |
| parent | 81537629668cdda03f83b0b63870d53963ba5229 (diff) | |
Fix smooth_min
The old smooth_min(x, k) had the properties
smooth_min(1, k) = k
smooth_min(inf, k) = 1
Now it's smooth_min(x, k, j) with the properties
smooth_min(1, k, j) = k
smooth_min(inf, k, j) = j
Diffstat (limited to 'pbr.cginc')
| -rw-r--r-- | pbr.cginc | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -283,7 +283,6 @@ float4 getLitColor( float2 brightness_proportions = brightnesses / sum_brightness; #if defined(_BRIGHTNESS_CLAMP) sum_brightness = smooth_clamp(sum_brightness, _Min_Brightness, _Max_Brightness); - //sum_brightness = clamp(sum_brightness, _Min_Brightness, _Max_Brightness); #endif direct_light.color[2] = sum_brightness * brightness_proportions[0]; indirect_light.diffuse[2] = sum_brightness * brightness_proportions[1]; |
