Rewrote collision shader to use generated normals with fake lighting instead of generated UV coords

This commit is contained in:
parax0
2016-12-24 03:05:51 -07:00
parent b362a23e4b
commit c0fb54888d
5 changed files with 38 additions and 29 deletions

View File

@@ -1,17 +1,16 @@
#version 330 core
// Input
in vec2 TexCoord;
in vec4 LightColor;
// Output
out vec4 PixelColor;
// Uniforms
uniform sampler2D Texture;
uniform vec4 TintColor;
// Main
void main()
{
PixelColor = vec4(texture(Texture, TexCoord).rgb, 0) * TintColor;
PixelColor = LightColor * TintColor;
}