mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-06-17 16:17:02 +08:00
feat: water rendering (#13)
* 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
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
id = 0
|
||||
is_cross_plane = false
|
||||
is_gas = true
|
||||
is_liquid = false
|
||||
is_passable = true
|
||||
is_transparent = true
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
id = 2
|
||||
is_cross_plane = false
|
||||
is_gas = false
|
||||
is_liquid = false
|
||||
is_passable = false
|
||||
is_transparent = false
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
id = 9
|
||||
is_cross_plane = true
|
||||
is_gas = false
|
||||
is_liquid = false
|
||||
is_passable = true
|
||||
is_transparent = true
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
id = 1
|
||||
is_cross_plane = false
|
||||
is_gas = false
|
||||
is_liquid = false
|
||||
is_passable = false
|
||||
is_transparent = false
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
id = 6
|
||||
is_cross_plane = false
|
||||
is_gas = false
|
||||
is_liquid = false
|
||||
is_passable = false
|
||||
is_transparent = true
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
id = 5
|
||||
is_cross_plane = false
|
||||
is_gas = false
|
||||
is_liquid = false
|
||||
is_passable = false
|
||||
is_transparent = false
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
id = 4
|
||||
is_cross_plane = false
|
||||
is_gas = false
|
||||
is_liquid = false
|
||||
is_passable = false
|
||||
is_transparent = false
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
id = 8
|
||||
is_cross_plane = false
|
||||
is_gas = false
|
||||
is_liquid = false
|
||||
is_passable = false
|
||||
is_transparent = false
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
id = 3
|
||||
is_cross_plane = false
|
||||
is_gas = false
|
||||
is_liquid = false
|
||||
is_passable = false
|
||||
is_transparent = false
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
name = "template"
|
||||
id = 0
|
||||
is_liquid = false
|
||||
is_gas = false
|
||||
is_passable = false
|
||||
is_cross_plane = false
|
||||
is_transparent = false
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
id = 7
|
||||
is_cross_plane = false
|
||||
is_gas = false
|
||||
is_liquid = true
|
||||
is_passable = false
|
||||
is_transparent = false
|
||||
is_passable = true
|
||||
is_transparent = true
|
||||
name = 'water'
|
||||
Reference in New Issue
Block a user