add layer counter, graphics stuff
This commit is contained in:
parent
f718e8d41f
commit
aa9674718f
4 changed files with 15 additions and 7 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue