NS/main/shaders/fs.shaders
2024-02-29 01:33:35 -05:00

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);
}