I'm trying to code a fragment shader that outputs color in the range of cold (dark blue) to hot (white, reds, yellows) depending on how many times the current fragment has been rendered to by the same mesh's shader.
Basically, the more the model's pixels, the warmer the color (in the overlapping pixels) should be.
↧