sent from android

This commit is contained in:
2025-07-30 13:14:22 +01:00
parent 15aa9d54ea
commit a03c7c85b8
25 changed files with 2243 additions and 203 deletions

View File

@@ -2,7 +2,11 @@
out vec4 FragColor;
in vec3 color; // Input color from the vertex shader
in vec2 TexCoord;
uniform sampler2D texture1; // Texture sampler
uniform sampler2D texture2; // Second texture sampler
void main() {
FragColor = vec4(color, 1.0); // Set the fragment color to the input color
FragColor = mix(texture(texture1, TexCoord), texture(texture2, TexCoord), 0.3) * vec4(color, 1.0); // Mix the two textures and apply the color
}