VoxelBlockyLibraryBase
Contains a list of models that can be used by VoxelMesherBlocky.
Contains a list of models that can be used by VoxelMesherBlocky.
Models used by VoxelMesherBlocky must be baked before they can be used efficiently at runtime. The way this process happens depends on the implementation of this class. It can be a simple list of models, or a list of high-level types generating variant models. Check child classes for more information.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Properties1
BakeTangentsProperty
public bool BakeTangents { get; set; }Enable this option if you need normal mapping on your voxels. If you don't need it, disabling can reduce memory usage and give a small speed boost.
Methods4
Bakevoid
public void Bake();Bakes the library. The data of models is optimized in order to combine them more efficiently when generating voxel meshes.
GetBakeTangentsbool
public bool GetBakeTangents();boolGetMaterialsReckfell.Collections.Array<Material>
public Reckfell.Collections.Array<Material> GetMaterials();Gets a list of all distinct materials found in all models of the library.
Note, if at least one non-empty model has no material, there will be one null entry in this list to represent "The default material".
Reckfell.Collections.Array<Material>SetBakeTangentsvoid
public void SetBakeTangents(bool bakeTangents);| Name | Type | Default |
|---|---|---|
bakeTangents | bool | — |
Fields and constants2
MaxMaterialsField
public const long MaxMaterials = 65536;MaxModelsField
public const long MaxModels = 65536;