gl and clicking fiexs

This commit is contained in:
biglyderv 2025-03-04 05:14:52 -05:00
parent 2c842d5b0f
commit 588f5c09d8
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5
2 changed files with 7 additions and 3 deletions

View file

@ -33,7 +33,7 @@
void main() {
// gl_FragColor is a special variable a fragment shader
// is responsible for setting
float dist = (log(distance(b_position.xy,vec2(0.0))) - size_thing) / log(2.0) * 0.1;
float dist = (log(distance(b_position.xy,vec2(0.0))) - size_thing + dist_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
}