mirror of
https://github.com/ENSL/NS.git
synced 2024-11-22 20:51:35 +00:00
16 lines
355 B
Text
16 lines
355 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 by the uniform float
|
||
|
fragColor = texColor * colorMultiplier;
|
||
|
}
|