mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
14 lines
222 B
GLSL
14 lines
222 B
GLSL
#version 330 core
|
|
|
|
in vec2 texCoords;
|
|
|
|
out vec4 FragColor;
|
|
|
|
uniform bool texturingEnabled;
|
|
uniform vec4 diffuseColor;
|
|
uniform sampler2D tex;
|
|
|
|
void main(){
|
|
FragColor=texturingEnabled?texture(tex,texCoords):diffuseColor;
|
|
}
|