1
0
Fork 0

implémentation partielle du moteur physique

This commit is contained in:
Fiesta87 2017-01-21 00:01:18 +01:00
parent 243864a621
commit 67de09af29
5 changed files with 159 additions and 17 deletions

View file

@ -6,9 +6,11 @@ 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() {
gl_FragData[0] = texture(materialTex, fragTexCoord) * color;
finalColor = texture(materialTex, fragTexCoord) * color;
}