minecraftvulkan/res/shaders/simple_shader.frag

13 lines
313 B
GLSL
Raw Normal View History

2022-09-19 01:20:51 +00:00
#version 450
2022-09-27 16:32:09 +00:00
layout (location = 0) in float fragLight;
2022-09-21 02:02:58 +00:00
layout (location = 1) in vec2 fragUv;
layout (location = 2) in flat int fragTex;
2022-09-19 01:20:51 +00:00
layout (location = 0) out vec4 outColor;
2022-09-29 03:20:37 +00:00
layout (binding = 1) uniform sampler2D texSampler[9];
2022-09-21 02:02:58 +00:00
2022-09-19 01:20:51 +00:00
void main() {
2022-09-27 16:32:09 +00:00
outColor = texture(texSampler[fragTex], fragUv) + fragLight;
2022-09-19 01:20:51 +00:00
}