VoxelInstanceGenerator

Inherits: Resource

Decides where to spawn instances on top of a voxel surface.

Description:

Generates the necessry information to spawn instances on top of a voxel surface. This may be used by a VoxelInstancer.

Note: to generate voxels, see VoxelGenerator.

Properties:

Type Name Default
float density 0.1
int emit_mode 0
float max_height 3.40282e+38
float max_scale 1.0
float max_slope_degrees 180.0
float min_height 1.17549e-38
float min_scale 1.0
float min_slope_degrees 0.0
FastNoiseLite noise
int noise_dimension 1
float noise_on_scale 0.0
float offset_along_normal 0.0
bool random_vertical_flip false
int scale_distribution 1
float vertical_alignment 1.0

Enumerations:

enum EmitMode:

  • EMIT_FROM_VERTICES = 0
  • EMIT_FROM_FACES = 1
  • EMIT_MODE_COUNT = 2

enum Distribution:

  • DISTRIBUTION_LINEAR = 0
  • DISTRIBUTION_QUADRATIC = 1
  • DISTRIBUTION_CUBIC = 2
  • DISTRIBUTION_QUINTIC = 3
  • DISTRIBUTION_COUNT = 4

enum Dimension:

  • DIMENSION_2D = 0
  • DIMENSION_3D = 1
  • DIMENSION_COUNT = 2

Property Descriptions

  • float density = 0.1

  • int emit_mode = 0

  • float max_height = 3.40282e+38

  • float max_scale = 1.0

  • float max_slope_degrees = 180.0

  • float min_height = 1.17549e-38

  • float min_scale = 1.0

  • float min_slope_degrees = 0.0

  • FastNoiseLite noise

  • int noise_dimension = 1

  • float noise_on_scale = 0.0

  • float offset_along_normal = 0.0

  • bool random_vertical_flip = false

  • int scale_distribution = 1

  • float vertical_alignment = 1.0

Generated on May 31, 2021