minecraftvulkan/res/shaders/simple_shader.frag
tylermurphy534 3edd271b81 shrub biome
2022-09-28 23:20:37 -04:00

13 lines
No EOL
313 B
GLSL
Executable file

#version 450
layout (location = 0) in float fragLight;
layout (location = 1) in vec2 fragUv;
layout (location = 2) in flat int fragTex;
layout (location = 0) out vec4 outColor;
layout (binding = 1) uniform sampler2D texSampler[9];
void main() {
outColor = texture(texSampler[fragTex], fragUv) + fragLight;
}