clarify comments
This commit is contained in:
parent
bc47c7c685
commit
f1ca83c973
1 changed files with 11 additions and 14 deletions
25
main.c
25
main.c
|
@ -6,28 +6,25 @@
|
||||||
#include "stb_image_write.h"
|
#include "stb_image_write.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
0 - simple
|
0 - balanced
|
||||||
balanced
|
1 - average of two largest channels, bias towards darker shades, use if unsure
|
||||||
1 - nomin
|
2 - makes image brighter
|
||||||
average of two largest channels, bias towards darker shades, use if unsure
|
3 - ??? (lots of banding so reduce strength)
|
||||||
2 - nomax
|
|
||||||
makes image brighter
|
|
||||||
3 - twist
|
|
||||||
results in a specific style. largest banding potential, reduce strength (2024 update I don't remember how I came up with that)
|
|
||||||
*/
|
*/
|
||||||
#define LUMINANCE_METHOD 1
|
#define LUMINANCE_METHOD 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
less is more (literally). Accepts decimals.
|
1 is the minimum, going below 1 makes surprising effects
|
||||||
go below 1 = regret
|
the higher value the less effect it has
|
||||||
negative causes b&w (although it does not colorize already b&w images)
|
so when I say "reduce strength" I mean "increase the value"
|
||||||
0 crashes
|
|
||||||
*/
|
*/
|
||||||
#define VIBRANCE_STRENGTH 1.1
|
#define VIBRANCE_STRENGTH 1.1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
this is to make things more natural but sometimes does the opposite so toggle if u get weird things (I have a fix in mind tho) (2024 update not anymore)
|
if a pixel goes below 0% or above 100% basically subtract the difference
|
||||||
basically darkens too bright things and vice versa
|
so -10% becomes 10% and 110% becomes 90%
|
||||||
|
this was supposed to fix clipping but messes up colors (I remember I had in mind a fix but I don't remember it)
|
||||||
|
|
||||||
uncomment to enable
|
uncomment to enable
|
||||||
*/
|
*/
|
||||||
//#define BETTER_CLAMP
|
//#define BETTER_CLAMP
|
||||||
|
|
Loading…
Reference in a new issue