mirror of
https://github.com/ApfelTeeSaft/vb01.git
synced 2026-08-26 19:33:45 +00:00
14 lines
249 B
GLSL
Executable File
14 lines
249 B
GLSL
Executable File
#version 330 core
|
|
|
|
in vec2 texCoords;
|
|
|
|
out vec4 FragColor;
|
|
|
|
uniform sampler2D textTex, diffuseMap;
|
|
uniform vec4 diffuseColor;
|
|
|
|
void main(){
|
|
float alpha = texture(textTex, texCoords).r;
|
|
FragColor = vec4(diffuseColor.xyz, diffuseColor.w * alpha);
|
|
}
|