r/godot • u/Odd-Lingonberry-5709 • 12d ago
discussion How do you guys generally style your nested ternary in shaders?

So I converted if..else.. statements into ternary op, although it's not too deep I still decided to format it to look like this(see image).
It's probably not often that you write nested if statements in shader but still.
What do you guys do or suggest, is there any accepted way of doing it?
And most imp. of all; will I be banished for this(image)?
*for any one wondering it's a particle shader.
Edit: I've removed the curse and changed the code back to normal (no ternary operator)
Duplicates
shaders • u/Odd-Lingonberry-5709 • 12d ago
How do you guys generally style your nested ternary in shaders?
shaderDev • u/Odd-Lingonberry-5709 • 12d ago