summaryrefslogtreecommitdiffstats
path: root/pbr.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-12-10 17:54:59 -0800
committeryum <yum.food.vr@gmail.com>2024-12-10 17:54:59 -0800
commit3b0aba19021e0288905e0f9b8e5398bbf8d6f003 (patch)
treeff1e821b63510217deca230f6f9f5e57d51444f4 /pbr.cginc
parent81537629668cdda03f83b0b63870d53963ba5229 (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.cginc1
1 files changed, 0 insertions, 1 deletions
diff --git a/pbr.cginc b/pbr.cginc
index 42a480e..1dd3d8b 100644
--- a/pbr.cginc
+++ b/pbr.cginc
@@ -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];