Godot Version
v4.2.2.stable.official [15073afe3]
Question
I need to use a shader, working on a water block similar to minecraft, any way to fix faces being visible through other cubes?
v4.2.2.stable.official [15073afe3]
I need to use a shader, working on a water block similar to minecraft, any way to fix faces being visible through other cubes?
I think minecraft gets the effect from greedy mesh optimizations. It’s not actually two separate cubes in minecraft, they combine cube meshes into large flat planes where possible.
It sounds like really hard work to simulate the effect, to discard other transparent blocks of the same type that are behind this one. You would have to reverse the draw order, which would immediately help but won’t draw any transparent block behind the glass.
Yayyy, fun. sigh, this is gonna suck
Maybe you can make use of this plugin?
If you intend to make a voxel game, it’s going to need greedy meshes or performance will fall.
I am aware of performance, I’m still rather early in development. I’ve looked at the plugin but making my own seems to be the best option for integrating with the games needs.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.