SWBF2-Classic-Msh-Viewer/MshViewer/Shader/TextureShader.frag
Anakin 9c12598bf5 trying to give MVP via buffer,
nothing displayed -.-
2016-11-03 19:46:36 +01:00

14 lines
164 B
GLSL

#version 450 core
// Input
in vec2 UV;
// Ouput data
out vec3 color;
uniform sampler2D textureSampler;
void main()
{
color = texture(textureSampler, UV).rgb;
}