Files
openglplayground/shaders/textured.fs
Matthias Blankertz 5f388a1723 - OBJ file reading
- VBO memory management
- Lighting
2014-11-17 18:19:46 +01:00

17 lines
260 B
GLSL

#version 330 core
uniform sampler2D texBase;
in vec2 fragTC;
//in vec3 fragNorm;
//in vec3 light0Vect;
in vec3 light;
out vec4 color;
void main(void) {
vec4 texColor = texture(texBase, fragTC);
color = texColor*vec4(light, 1.0)+texColor*0.05;
}