spooky-game/assets/shaders/text-fragment.glsl

20 lines
338 B
Plaintext
Raw Normal View History

2020-08-13 20:14:37 +02:00
#version 130
in vec3 vPosition2;
in vec2 vTexCoords2;
in vec3 vNormal2;
out vec4 outColor;
uniform vec3 diffuseColor;
uniform sampler2D diffuseTextureID;
void main() {
// Texturing
vec4 pixelColor = texture2D(diffuseTextureID, vTexCoords2);
// Final color
outColor = vec4(diffuseColor.rgb, pixelColor.r);
outColor = vec4(1);
}