diff options
| author | yum <yum.food.vr@gmail.com> | 2024-11-18 18:16:38 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-11-18 18:16:38 -0800 |
| commit | 8bc2ce35d518a37cc07fba23613d85822c9c0ea6 (patch) | |
| tree | c917bba999b5491d08291612d8472db2cda6ba84 /tooner_lighting.cginc | |
| parent | 5fdbeddf4b0002ae292c6f4081a0c9baeda919bf (diff) | |
Add ACES filmic toggle to main shader
Diffstat (limited to 'tooner_lighting.cginc')
| -rw-r--r-- | tooner_lighting.cginc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tooner_lighting.cginc b/tooner_lighting.cginc index 243393a..72b5827 100644 --- a/tooner_lighting.cginc +++ b/tooner_lighting.cginc @@ -16,12 +16,13 @@ #include "iq_sdf.cginc" #include "math.cginc" #include "motion.cginc" +#include "oklab.cginc" #include "pbr.cginc" #include "poi.cginc" #include "shear_math.cginc" +#include "tone.cginc" #include "tooner_scroll.cginc" #include "trochoid_math.cginc" -#include "oklab.cginc" #ifndef TOONER_LIGHTING #define TOONER_LIGHTING @@ -2467,6 +2468,11 @@ float4 effect(inout v2f i, out float depth) #if defined(_GLITTER) result.rgb += glitter_color_unlit * _Glitter_Brightness; #endif + +#if defined(_ACES_FILMIC) + result.rgb = aces_filmic(max(result.rgb, 0)); +#endif + // This version exists for compatibility with the Bakery lightmapper. We // specifically need to expose _EmissionMap and _EmissionColor. #if defined(_EMISSION) |
