1
0
Fork 0
This repository has been archived on 2024-04-23. You can view files and clone it, but cannot push or open issues or pull requests.
Global-Gam-Jam-2017/res/shaders/main.frag
2017-01-20 22:34:01 +01:00

16 lines
No EOL
453 B
GLSL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#version 150
//Il ny a pas de layout(location=i) dans OpenGL < 3.3, mais tu peux utiliser glFragData[i] = myvalue à la place.
uniform sampler2D materialTex;
uniform vec4 color;
in vec2 fragTexCoord;
in vec3 fragVert;
out vec4 finalColor;
//layout(location = 0) out vec4 finalColor;
// https://learnopengl.com/#!Lighting/Multiple-lights pour le lighing en cas de besoin
void main() {
finalColor = texture(materialTex, fragTexCoord) * color;
}