Table of Contents

Class VoxelGenerator

Namespace
VoxelPlayground.Engine
Assembly
VoxEngineCore.dll
public static class VoxelGenerator
Inheritance
object
VoxelGenerator

Methods

GenerateHeightmapTileVoxelData(int, int, int, int, int, int, float, Texture2D, Texture2D, out int, out float, out float, out int, IdName)

public static NativeArray<PointDataV2> GenerateHeightmapTileVoxelData(int startX, int startZ, int tileWidth, int tileHeight, int fullWidth, int fullHeight, float heightScale, Texture2D heightmap, Texture2D colormap, out int solidCount, out float minHeight, out float maxHeight, out int voxelHeight, PointDataV2.Id.IdName idName = IdName.Stone)

Parameters

startX int
startZ int
tileWidth int
tileHeight int
fullWidth int
fullHeight int
heightScale float
heightmap Texture2D
colormap Texture2D
solidCount int
minHeight float
maxHeight float
voxelHeight int
idName PointDataV2.Id.IdName

Returns

NativeArray<PointDataV2>