mirror of
https://github.com/ENSL/NS.git
synced 2024-11-25 05:51:11 +00:00
14 lines
333 B
Text
14 lines
333 B
Text
#version 330 core
|
|
|
|
in vec2 texCoord;
|
|
out vec4 fragColor;
|
|
|
|
uniform sampler2D textureSampler;
|
|
uniform float colorMultiplier; // Uniform float to multiply color by
|
|
|
|
void main() {
|
|
// Sample the texture
|
|
vec4 texColor = texture(textureSampler, texCoord);
|
|
// Multiply the color
|
|
fragColor = vec4(texColor.rgb * colorMultiplier, 1.0f);
|
|
}
|