sent from android
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user