From 35e67da08e3d214589968c19b4b2fb31d8e566cc Mon Sep 17 00:00:00 2001 From: raysan5 Date: Sun, 17 Oct 2021 21:02:18 +0200 Subject: UPDATED: examples to raylib 4.0 Some new examples added --- examples/text/text_draw_3d.data | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 examples/text/text_draw_3d.data (limited to 'examples/text/text_draw_3d.data') diff --git a/examples/text/text_draw_3d.data b/examples/text/text_draw_3d.data new file mode 100644 index 0000000..a6b1e20 --- /dev/null +++ b/examples/text/text_draw_3d.data @@ -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; +} -- cgit v1.2.3