voxelobject

package
v0.0.0-...-6e0df7b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessedElement

type ProcessedElement struct {
	Normal         geometry.Vector3
	AveragedNormal geometry.Vector3
	Detail         float64
	Occlusion      int
	Index          byte
	IsSurface      bool
}

type ProcessedVoxelObject

type ProcessedVoxelObject struct {
	Elements [][][]ProcessedElement
	Size     geometry.Point
	Palette  *colour.Palette
}

func GetProcessedVoxelObject

func GetProcessedVoxelObject(o magica.VoxelObject, pal *colour.Palette, isTiled, hasBase bool) (p ProcessedVoxelObject)

func (*ProcessedVoxelObject) Invalid

func (pv *ProcessedVoxelObject) Invalid() bool

func (*ProcessedVoxelObject) SafeGetData

func (pv *ProcessedVoxelObject) SafeGetData(x, y, z int) (pe ProcessedElement)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL