Modding:Block Tessellator: Difference between revisions

From Vintage Story Wiki
Line 27: Line 27:
Draws a full height cube. The block properties should specify a texture for all 6 sides of the block, or specify the same texture for all sides through the "all" alias.
Draws a full height cube. The block properties should specify a texture for all 6 sides of the block, or specify the same texture for all sides through the "all" alias.


The [[Modding:Block_Json_Properties#p_renderpass|renderpass]] property is respected. Typically the default "opaque" <code>renderpass</code> is used with the cube tessellator. "transparent" should be used for semitransparent blocks like glass.
The [[Modding:Block_Json_Properties#p_renderpass|renderpass]] property is respected. Typically the default Opaque <code>renderpass</code> is used with the cube tessellator. Transparent should be used for semitransparent blocks like glass.


== Cross ==
== Cross ==