Skip to content

Commit

Permalink
Merge pull request #458 from Hultan/draw_3d
Browse files Browse the repository at this point in the history
New example: text/draw_3d
  • Loading branch information
gen2brain authored Nov 11, 2024
2 parents 5e9516b + 6de5b09 commit 4b3433a
Show file tree
Hide file tree
Showing 2 changed files with 841 additions and 0 deletions.
19 changes: 19 additions & 0 deletions examples/text/draw_3d/alpha_discard.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#version 330

// Input vertex attributes (from vertex shader)
in vec2 fragTexCoord;
in vec4 fragColor;

// Input uniform values
uniform sampler2D texture0;
uniform vec4 colDiffuse;

// Output fragment color
out vec4 finalColor;

void main()
{
vec4 texelColor = texture(texture0, fragTexCoord);
if (texelColor.a == 0.0) discard;
finalColor = texelColor * fragColor * colDiffuse;
}
Loading

0 comments on commit 4b3433a

Please sign in to comment.