Lightweight OpenGL 3D Renderer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Euclid/shaders/fragment.glsl

14 lines
257 B

2 years ago
#version 330 core
2 years ago
out vec4 FragColor;
in vec4 VertexColor;
in vec2 TexCoord;
uniform sampler2D inpTexture;
uniform vec3 rgbOffset = vec3(0.0, 0.0, 0.0);
2 years ago
void main() {
FragColor = texture(inpTexture, TexCoord) * (VertexColor + vec4(rgbOffset, 1.0));
2 years ago
}