Complete code re-work 'Getting Started' tutorials.

This commit is contained in:
Joey de Vries
2017-04-06 21:05:54 +02:00
parent 76de32530d
commit edbc854ab2
59 changed files with 5171 additions and 1390 deletions

View File

@@ -0,0 +1,15 @@
#version 330 core
out vec4 fragColor;
in vec3 ourColor;
in vec2 texCoord;
// texture samplers
uniform sampler2D texture1;
uniform sampler2D texture2;
void main()
{
// linearly interpolate between both textures (80% container, 20% awesomeface)
fragColor = mix(texture(texture1, texCoord), texture(texture2, texCoord), 0.2);
}