feat: add shader pipeline and chunk GLSL shaders
This commit is contained in:
13
Assets/shaders/chunk.frag
Normal file
13
Assets/shaders/chunk.frag
Normal file
@@ -0,0 +1,13 @@
|
||||
#version 330 core
|
||||
in vec2 vUv;
|
||||
in float vShade;
|
||||
|
||||
out vec4 FragColor;
|
||||
|
||||
uniform sampler2D atlas;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 texel = texture(atlas, vUv);
|
||||
FragColor = vec4(texel.rgb * vShade, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user