Updated some examples with inconsistencies

This commit is contained in:
Ray
2025-09-04 18:57:00 +02:00
parent fb42819eab
commit 7646d08751
12 changed files with 71 additions and 39 deletions

View File

@ -0,0 +1,18 @@
#version 120
// 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;
}