Removed binaries

This commit is contained in:
Synthasmagoria 2026-08-28 07:47:15 +02:00
commit 6698cf2301
13 changed files with 109 additions and 34 deletions

15
assets/shaders/sdf.frag Normal file
View file

@ -0,0 +1,15 @@
#version 120
varying vec2 fragTexCoord;
varying vec4 fragColor;
uniform sampler2D texture0;
uniform vec4 colDiffuse;
const float smoothing = 1.0/16.0;
void main() {
float distance = texture2D(texture0, fragTexCoord).a;
float alpha = smoothstep(0.5 - smoothing, 0.5 + smoothing, distance);
gl_FragColor = vec4(fragColor.rgb, fragColor.a * alpha);
}