diff options
| author | raysan5 <[email protected]> | 2021-10-17 21:00:52 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-10-17 21:00:52 +0200 |
| commit | f437f7b405debec305aa13db80d7cddd675cc29e (patch) | |
| tree | bd62e64d73d31bab25ce3ce37f76cf15a9b85eef /examples/text | |
| parent | cf12992b6a3bdf1f5332111708aa0200525cc60a (diff) | |
| download | raylib-f437f7b405debec305aa13db80d7cddd675cc29e.tar.gz raylib-f437f7b405debec305aa13db80d7cddd675cc29e.zip | |
Reviewed makefile and examples building
Diffstat (limited to 'examples/text')
| -rw-r--r-- | examples/text/resources/shaders/glsl100/alpha_discard.fs | 20 | ||||
| -rw-r--r-- | examples/text/resources/shaders/glsl100/sdf.fs | 2 |
2 files changed, 22 insertions, 0 deletions
diff --git a/examples/text/resources/shaders/glsl100/alpha_discard.fs b/examples/text/resources/shaders/glsl100/alpha_discard.fs new file mode 100644 index 00000000..a6b1e20c --- /dev/null +++ b/examples/text/resources/shaders/glsl100/alpha_discard.fs @@ -0,0 +1,20 @@ +#version 100 + +precision mediump float; + +// Input vertex attributes (from vertex shader) +varying vec2 fragTexCoord; +varying vec4 fragColor; + +// Input uniform values +uniform sampler2D texture0; +uniform vec4 colDiffuse; + +void main() +{ + vec4 texelColor = texture2D(texture0, fragTexCoord); + + if (texelColor.a == 0.0) discard; + + gl_FragColor = texelColor*fragColor*colDiffuse; +} diff --git a/examples/text/resources/shaders/glsl100/sdf.fs b/examples/text/resources/shaders/glsl100/sdf.fs index b4214d92..31323d96 100644 --- a/examples/text/resources/shaders/glsl100/sdf.fs +++ b/examples/text/resources/shaders/glsl100/sdf.fs @@ -1,5 +1,7 @@ #version 100 +precision mediump float; + // Input vertex attributes (from vertex shader) varying vec2 fragTexCoord; varying vec4 fragColor; |
