smrendererv3/SMCode/SM.Base/Shader/Files/default.frag
Michel Fedde acccf5f0e7 19.09.2020
+ Vector-classes
+ Added Background
~ Changed OpenTK.Vector2 to SM.Base.Types.Vector2
2020-09-19 19:04:19 +02:00

14 lines
No EOL
233 B
GLSL

#version 330
in vec2 vTexture;
uniform vec4 Tint;
uniform bool UseTexture;
uniform sampler2D Texture;
layout(location = 0) out vec4 color;
void main() {
color = Tint;
if (UseTexture) color *= texture(Texture, vTexture);
}