Texture Variations

Modified on Wed, 19 Jul 2023 at 11:57 PM

This feature has been introduced in Voxel Play 12.3 and let you define optional rules to pick different voxel textures when the world is being generated.


Usually, you define textures at the voxel definition for sides like top, bottom, sides, etc. With a Texture Variations asset, you can specify that such textures can be replaced randomly by a set of other textures, producing more variation to the world.


To use this feature, start by creating a Texture Variation asset. Click on the Project hierarchy and select Create -> Voxel Play -> Texture Variation:



Similarly to Connected Textures or Connected Voxels, a Texture Variations asset will be created in your project.


Specify to which Voxel Definition and sides will these rules apply:



You can add any number of textures, with optional normal maps and a custom probability. The sum of probabilities should be 1.0 but the system will automatically weight them based on the sum of all probabilities.


Make sure the Texture Variations asset is located within the World folder structure in order to Voxel Play to locate and use these rules.


When you play the game, you will see that the usual texture used by the voxel definition will be replaced randomly by the textures set in the Texture Variations asset.



Note that this feature doesn't change the contents of the chunk - it only changes the texture used to render the chunk so if you change the Texture Variation asset, the visualization will also be different when you play the game again.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article