reckfellENGINE

VoxelBlockyLibraryBase

Contains a list of models that can be used by VoxelMesherBlocky.

On this page
class VoxelBlockyLibraryBaseReckfellSharpInherits Resource

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
# BakeTangents
C#
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
# Bake
C#
public void Bake();

Bakes the library. The data of models is optimized in order to combine them more efficiently when generating voxel meshes.

GetBakeTangentsbool
# GetBakeTangents
C#
public bool GetBakeTangents();
Returns bool
GetMaterialsReckfell.Collections.Array<Material>
# GetMaterials
C#
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".

Returns Reckfell.Collections.Array<Material>
SetBakeTangentsvoid
# SetBakeTangents
C#
public void SetBakeTangents(bool bakeTangents);
Parameters
NameTypeDefault
bakeTangentsbool—

Fields and constants2

MaxMaterialsField
# MaxMaterials
C#
public const long MaxMaterials = 65536;
MaxModelsField
# MaxModels
C#
public const long MaxModels = 65536;
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.