I was messing with glowing lighting when I noticed an odd artifact in my first try.
For some reason I can see three defined edges inside of the glowing pattern. I downloaded the image and marked where I see the edges.
I am just curious why they appear to be there as I can see no mathematical reason why they should be there. Is it just the way I am displaying it, or is there some sort of computational precision issue?
For reference here is the ShaderToy code that created this:
void mainImage( out vec4 fragColor, in vec2 fragCoord )
{
vec2 uv = fragCoord.xy / iResolution.xy;
float disty = abs(uv.y - 0.5);
float distx = abs(uv.x - 0.5);
distx *= 100.0;
disty *= 100.0;
fragColor = vec4(0.0, 1.0 / pow(abs((1.0 - distx) + (1.0 - disty)), 0.5), 0.0, 1.0);
}
Although I am not sure it is physically accurate to have those spikes on the edges of the diamond I sure do like the effect that creates.