diff options
| author | Akshay Nair <phenax5@gmail.com> | 2026-10-15 01:43:03 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2026-10-15 01:43:03 +0530 |
| commit | 65f4bae19a70ee2cb90043648d7e45b4a2275f7b (patch) | |
| tree | b1a2edd172f60ae43e1d916049734f126ffb8f4b /src/main/resources/shaders/modules | |
| parent | 686b2954a7cf0aae0493b4a974400aed64bbb96f (diff) | |
| download | art-playground-openrndr-65f4bae19a70ee2cb90043648d7e45b4a2275f7b.tar.gz art-playground-openrndr-65f4bae19a70ee2cb90043648d7e45b4a2275f7b.zip | |
More adopted moth + warmitup
Diffstat (limited to 'src/main/resources/shaders/modules')
| -rw-r--r-- | src/main/resources/shaders/modules/utils.glsl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/resources/shaders/modules/utils.glsl b/src/main/resources/shaders/modules/utils.glsl index 090e017..f75973e 100644 --- a/src/main/resources/shaders/modules/utils.glsl +++ b/src/main/resources/shaders/modules/utils.glsl @@ -46,3 +46,10 @@ vec3 saturation(vec3 color, float s) { y + s * (color.b - y) ); } +vec3 color_warmth(vec3 color, float warmth) { + color.r *= (1.0 + warmth * 0.5); + color.g *= (1.0 + warmth * 0.2); + color.b *= (1.0 - warmth * 0.3); + return clamp(color, 0.0, 1.0); +} + |
