Modding:Texture Atlas: Difference between revisions

From Vintage Story Wiki
Add navbox
(→‎Texture atlas size: Update for 1.19.0-pre.2)
(Add navbox)
 
(One intermediate revision by the same user not shown)
Line 23: Line 23:


== Support for multiple texture atlases ==
== Support for multiple texture atlases ==
Only allowing a single texture atlas for each of the 3 types, with a limited size for that atlas, limits the number of block textures that can be added by mods. A solution would be to support multiple texture atlases for each type.
Only allowing a single texture atlas for each of the 3 types, with a limited size for that atlas, limits the number of block textures that can be added by mods. The solution was to support multiple texture atlases for each type. In 1.19.0, support for multiple texture atlases was finished.


As of 1.18.15, there is a lot of code for that, but it does not work properly. When the texture atlas fills up, a new one is created. However, it does not render properly. The rendered textures seem to come from the first texture atlas. Also, if there are multiple atlases for the same type, then the <code>.debug exptexatlas</code> command will dump multiple copies of the first atlas, instead of dumping each one.
{{Navbox/modding|Vintage Story}}
Confirmedusers
263

edits