ADDED: Missing resources on some examples

This commit is contained in:
Ray
2025-08-07 17:05:25 +02:00
parent ff1087480c
commit 1fadc67fb3
7 changed files with 205 additions and 0 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()
{
// Fetch color from texture sampler
vec4 texelColor = texture2D(texture0, fragTexCoord);
// Calculate final fragment color
gl_FragColor = texelColor*colDiffuse*fragColor;
}