Mass refactoring part 1/2: establishing multiple subprojects, moving source files to their new location, adding resources/templates to version control

This commit is contained in:
parax0
2015-12-14 18:33:16 -07:00
parent b4b134d55b
commit 8805baaee1
1116 changed files with 129200 additions and 546 deletions

View File

@@ -0,0 +1,27 @@
#version 330 core
// Input
in vec2 TexCoord;
// Output
out vec4 PixelColor;
// Uniforms
uniform int RGBALayer;
uniform vec4 FontColor;
uniform sampler2D Texture;
// Main
void main()
{
switch (RGBALayer)
{
case 0x0: PixelColor = texture(Texture, TexCoord).rrrr; break;
case 0x1: PixelColor = texture(Texture, TexCoord).gggg; break;
case 0x2: PixelColor = texture(Texture, TexCoord).bbbb; break;
case 0x3: PixelColor = texture(Texture, TexCoord).aaaa; break;
default: PixelColor = vec4(0,0,0,0); break;
}
PixelColor *= FontColor;
}