15 lines
382 B
GLSL
15 lines
382 B
GLSL
#version 330
|
|
|
|
#extension GL_ARB_separate_shader_objects : enable
|
|
#extension GL_ARB_shading_language_420pack : enable
|
|
|
|
layout(set = 0, binding = 1) uniform sampler2D Texture;
|
|
layout (location = 0) in vec2 vUV;
|
|
layout (location = 1) in vec4 vColor;
|
|
|
|
layout (location = 0) out vec4 outColor;
|
|
|
|
void main() {
|
|
vec4 texColor = texture(Texture, vUV);
|
|
outColor = vColor * texColor;
|
|
} |