Modding:Block Tessellator: Difference between revisions

From Vintage Story Wiki
Fix link
(Add modding navbox)
(Fix link)
Line 1: Line 1:
Each visible chunk is tessellated into a mesh, and that mesh is reused until the chunk is unloaded, or the chunk is marked dirty. The chunk is retessellated on a [[Modding:Render_Stages|background thread]] when it is marked dirty.
Each visible chunk is tessellated into a mesh, and that mesh is reused until the chunk is unloaded, or the chunk is marked dirty. The chunk is retessellated on a [[Modding:Render_Stages|background thread]] when it is marked dirty.


The chunk tessellator calls a block tessellator for each block in the chunk. Blocks select their tessellator through the [[https://wiki.vintagestory.at/index.php/Modding:Block_Json_Properties|drawtype property]]. The property value is an [https://apidocs.vintagestory.at/api/Vintagestory.API.Client.EnumDrawType.html EnumDrawType], and the parsing is case insensitive.
The chunk tessellator calls a block tessellator for each block in the chunk. Blocks select their tessellator through the [[Modding:Block_Json_Properties|drawtype]] property. The property value is an [https://apidocs.vintagestory.at/api/Vintagestory.API.Client.EnumDrawType.html EnumDrawType], and the parsing is case insensitive.


== BlockLayer ==
== BlockLayer ==
Confirmedusers
272

edits