summary refs log tree commit diff
path: root/shaders/shader.frag
blob: 20550ba81e5236de57e7acbd7461c3e281fb48fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#version 460

layout(binding = 1) uniform sampler2D textureSampler;

layout(location = 0) in vec3 fragmentColor;
layout(location = 1) in vec2 fragmentTextureCoordinate;

layout(location = 0) out vec4 outColor;

void main() {
  outColor = vec4(fragmentColor
                      * texture(textureSampler,
                                fragmentTextureCoordinate).rgb,
                  1.0);
}