From 43df9fc828a0103ebac98194dbf3f19b88ebed75 Mon Sep 17 00:00:00 2001 From: yum Date: Sun, 17 Nov 2024 01:55:31 -0800 Subject: Update function name Aces filmic is more accurate than just "aces". --- fog.cginc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fog.cginc b/fog.cginc index 5eb2145..8fbe7de 100644 --- a/fog.cginc +++ b/fog.cginc @@ -211,7 +211,7 @@ float fog00_map_dr( // https://knarkowicz.wordpress.com/2016/01/06/aces-filmic-tone-mapping-curve/ // cc0 -float3 ACES(float3 x) { +float3 AcesFilmic(float3 x) { float a = 2.51f; float b = 0.03f; float c = 2.43f; @@ -415,7 +415,7 @@ Fog00PBR getFog00(v2f i, ToonerData tdata) { //pbr.albedo.rgb += ign(tdata.screen_uv_round) * .00390625; // Remap onto [0, 1] - pbr.albedo.rgb = ACES(pbr.albedo.rgb); + pbr.albedo.rgb = AcesFilmic(pbr.albedo.rgb); // Clamp so max brightness is comfortable. Do it in perceptually uniform // space to avoid affecting saturation. pbr.albedo.rgb = LRGBtoOKLAB(pbr.albedo.rgb); -- cgit v1.2.3