mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-06-18 00:27:02 +08:00
* refactor: update water texture * feat(gameplay): implement transparent block rendering with depth sorting * fix(world): use camera pos for distance calculations, make water passable * refactor(player): use ivec3 for block pass check * feat(camera): add underwater detection * feat(renderer): add underwater effect with framebuffer post-processing * feat(block): add gas property and refactor solid block check * fix(assets): set leaf block transparency to false * fix(block): set leaf as transparent
11 lines
198 B
GLSL
11 lines
198 B
GLSL
#version 460
|
|
|
|
layout (location = 0) in vec2 pos;
|
|
layout (location = 1) in vec2 texCoord;
|
|
|
|
out vec2 TexCoord;
|
|
|
|
void main() {
|
|
gl_Position = vec4(pos.x, pos.y, 0.0, 1.0);
|
|
TexCoord = texCoord;
|
|
} |