Conversation

Replying to
(this is basically the reinhard tonemapping operator. there are many others! ones with a toe at the bottom can work better. but when livecoding/jamming/shadertoying, having a quick x/(1+x) and tanh(x) in your muscle memory is handy)
1
25
Show replies
Replying to
Ohh fuck yeah! That seems really handy! If you're somewhere with no tanh (like pico8), you could do this instead: abs(x)/(x+sign(x))
2
11
Replying to
I'm also a big fan of (-sign(x),sign(x),abs(x)). Exactly 0=black. Positive green-cyan. Negative red-magenta. Could throw a tonemap on the abs.
1
15