Removed binaries
This commit is contained in:
parent
7e3ca0c95a
commit
6698cf2301
13 changed files with 109 additions and 34 deletions
15
assets/shaders/sdf.frag
Normal file
15
assets/shaders/sdf.frag
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue