mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-06-17 16:17:02 +08:00
* feat: add grass texture and update grass_block texture * feat: add block data * feat: add blocks_tool * feat: add sync info and change function in blocks_tools * feat: add check and new function * refactor: make block texture loading data-driven * feat: add rendering for grass * feat: passable grass * feat: random grass place * fix: memory leak in TextureManager::load_cross_plane_texture
16 lines
261 B
GLSL
16 lines
261 B
GLSL
#version 460
|
|
|
|
in vec2 tc;
|
|
flat in int tex_layer;
|
|
out vec4 color;
|
|
|
|
layout (binding = 0) uniform sampler2DArray samp;
|
|
|
|
void main(void) {
|
|
color = texture(samp, vec3(tc, tex_layer));
|
|
if (color.a < 0.1) {
|
|
discard;
|
|
}
|
|
//color = varyingColor;
|
|
}
|