1
0
Files
DDNet_Server/data/shader/vulkan/prim.frag
Your Name ff5da79d57 init
2023-04-14 23:38:34 +08:00

21 lines
440 B
GLSL
Executable File

#version 450
#extension GL_ARB_separate_shader_objects : enable
#ifdef TW_TEXTURED
layout(binding = 0) uniform sampler2D gTextureSampler;
#endif
layout(location = 0) noperspective in vec2 texCoord;
layout(location = 1) noperspective in vec4 vertColor;
layout(location = 0) out vec4 FragClr;
void main()
{
#ifdef TW_TEXTURED
vec4 tex = texture(gTextureSampler, texCoord);
FragClr = tex * vertColor;
#else
FragClr = vertColor;
#endif
}