Modding:Block Tessellator: Difference between revisions

From Vintage Story Wiki
(→‎SurfaceLayer: Fix link)
Line 40: Line 40:
Renders the block as a cube with the top chopped off, based on the [[Modding:Block_Json_Properties#p_liquidlevel liquidLevel]] block property. The tessellator also looks at the neighboring blocks to see if the liquid is flowing towards them, and if so it adjusts the angle of the top of the cube. It also adds custom ints and floats to the mesh to handle rendering waves in the liquid.
Renders the block as a cube with the top chopped off, based on the [[Modding:Block_Json_Properties#p_liquidlevel liquidLevel]] block property. The tessellator also looks at the neighboring blocks to see if the liquid is flowing towards them, and if so it adjusts the angle of the top of the cube. It also adds custom ints and floats to the mesh to handle rendering waves in the liquid.


The tessellator always uses the "liquid" render pass; the <code>renderpass</code> block property is ignored.
The tessellator always uses the Liquid render pass; the <code>renderpass</code> block property is ignored.


Liquid blocks are recommended to set these properties:
Liquid blocks are recommended to set these properties: