Zylann / godot_voxel

Voxel module for Godot Engine
MIT License
2.71k stars 251 forks source link

Bigger atlas for blocky terrains #675

Closed joaopedrosgs closed 4 months ago

joaopedrosgs commented 4 months ago

Hi! First I want to thank you for your work. This plugin is amazing and it is saving me so much time!

My question is about the atlas for blocky terrains. Currently, it is limited to 16x16 tiles, is it possible to increase this number? If not, how can I add more block textures? Should I just override the material for each block? (while keeping the number of materials low, of course)

MGilleronFJ commented 4 months ago

Currently, it is limited to 16x16 tiles

It is not limited to 16. You can increase that number in the atlas_size property. In fact, that's only a thing in VoxelBlockyModelCube (which has to know that to make it easier to generate the UVs), while VoxelBlockyModelMesh assumes you have set the UVs you want already on the mesh. So really there is no restriction of size.

joaopedrosgs commented 4 months ago

Looks like it is indeed the case. Thank you @MGilleronFJ. Closing this issue now.