Closed kicknbrit closed 4 years ago
Yes? I mean, you can use whatever textures and techniques you want in shaders. This module doesn't provide shaders. You may want to be more specific about what you need from it. There have been a few feature requests already revolving around ways to texture smooth terrain, as there is currently a missing feature in mesh generation which would allow to do that (i.e adding a vertex attribute which shaders can use to blend an appropriate texture). If you use blocky terrain though, you are able to control UV-mapping so the problem isnt present there.
Sorry for the late reply. Yes to be a bit more clear I was wondering if there was anything exposed via a vertex attribute that I could use the set the texture for triplanar mapping. It appears not though. Any timeline for when this feature will get looked at? Thanks
There is an open issue about this already https://github.com/Zylann/godot_voxel/issues/93
There is no timeline for this. I just need to figure out how to even bring texture data into the generated meshes, such that it can be useful. A simple way would be to use the COLOR
attribute RGBA to splat 4 textures, but that's too limited, and that attribute is used already for Transvoxel stitching data. Besides, Godot doesn't allow us to put custom vertex attributes and the remaining ones are very scarce... so that's where the feature is at.
Also there are also issues about choosing different materials, which this time requires to have multiple surfaces within the mesh, and that's a different problem to tackle, see https://github.com/Zylann/godot_voxel/issues/104
Okay well thanks for all the info. Looking forward to seeing this feature but I understand you must be swamped with things to do with this module so I will be patient. :)
Hi I was wondering if there is any way to use multiple textures for triplanar mapping on a VoxelLodTerrain mesh? Like for example, grass blocks and dirt blocks that are stored in a texture atlas and can be used depending on on the block type.
Thanks