When to apply gamma correction?

Hey! That’s really cool! Thanks a lot.