add layer counter, graphics stuff

This commit is contained in:
biglyderv 2025-03-12 20:54:20 -04:00
parent f718e8d41f
commit aa9674718f
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5
4 changed files with 15 additions and 7 deletions

View file

@ -37,11 +37,13 @@
// gl_FragColor is a special variable a fragment shader
// is responsible for setting
if (is_fg) {
gl_FragColor = vec4(b_position.xyz,1) * 0.2 + vec4(0.3,0.3,0.3,1) * 0.8;
gl_FragColor = vec4(b_position.xyz,1.0) * 0.5 + vec4(1.0,1.0,1.0,1.0) * 0.5;
return;
}
float dist = (log(distance(b_position.xy,vec2(0.0))) - size_thing) / log(2.0) * 0.1;
gl_FragColor = vec4((mod(dist,0.1) - 0.1 + 0.1 * dist_thing) * 50.0 * vec3(1,1,1),1); // return redish-purple
dist = mod(dist,0.1);
dist = abs(dist - 0.05) + 0.05;
gl_FragColor = vec4((mod(dist,0.1) - 0.1 + 0.1 * dist_thing) * 50.0 * vec3(1,1,1),1);
}
</script>