VoxelGIData

package
v0.0.0-...-f3deeb4 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package VoxelGIData provides methods for working with VoxelGIData object instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advanced

type Advanced = class

Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.

type Any

type Any interface {
	gd.IsClass
	AsVoxelGIData() Instance
}

type Instance

type Instance [1]gdclass.VoxelGIData

[VoxelGIData] contains baked voxel global illumination for use in a [VoxelGI] node. [VoxelGIData] also offers several properties to adjust the final appearance of the global illumination. These properties can be adjusted at run-time without having to bake the [VoxelGI] node again. [b]Note:[/b] To prevent text-based scene files ([code].tscn[/code]) from growing too much and becoming slow to load and save, always save [VoxelGIData] to an external binary resource file ([code].res[/code]) instead of embedding it within the scene. This can be done by clicking the dropdown arrow next to the [VoxelGIData] resource, choosing [b]Edit[/b], clicking the floppy disk icon at the top of the Inspector then choosing [b]Save As...[/b].

var Nil Instance

Nil is a nil/null instance of the class. Equivalent to the zero value.

func New

func New() Instance

func (Instance) Allocate

func (self Instance) Allocate(to_cell_xform Transform3D.BasisOrigin, aabb AABB.PositionSize, octree_size Vector3.XYZ, octree_cells []byte, data_cells []byte, distance_field []byte, level_counts []int32)

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsRefCounted

func (self Instance) AsRefCounted() [1]gd.RefCounted

func (Instance) AsResource

func (self Instance) AsResource() Resource.Instance

func (Instance) AsVoxelGIData

func (self Instance) AsVoxelGIData() Instance

func (Instance) Bias

func (self Instance) Bias() Float.X

func (Instance) DynamicRange

func (self Instance) DynamicRange() Float.X

func (Instance) Energy

func (self Instance) Energy() Float.X

func (Instance) GetBounds

func (self Instance) GetBounds() AABB.PositionSize

Returns the bounds of the baked voxel data as an [AABB], which should match [member VoxelGI.size] after being baked (which only contains the size as a [Vector3]). [b]Note:[/b] If the size was modified without baking the VoxelGI data, then the value of [method get_bounds] and [member VoxelGI.size] will not match.

func (Instance) GetDataCells

func (self Instance) GetDataCells() []byte

func (Instance) GetLevelCounts

func (self Instance) GetLevelCounts() []int32

func (Instance) GetOctreeCells

func (self Instance) GetOctreeCells() []byte

func (Instance) GetOctreeSize

func (self Instance) GetOctreeSize() Vector3.XYZ

func (Instance) GetToCellXform

func (self Instance) GetToCellXform() Transform3D.BasisOrigin

func (Instance) Interior

func (self Instance) Interior() bool

func (Instance) NormalBias

func (self Instance) NormalBias() Float.X

func (Instance) Propagation

func (self Instance) Propagation() Float.X

func (Instance) SetBias

func (self Instance) SetBias(value Float.X)

func (Instance) SetDynamicRange

func (self Instance) SetDynamicRange(value Float.X)

func (Instance) SetEnergy

func (self Instance) SetEnergy(value Float.X)

func (Instance) SetInterior

func (self Instance) SetInterior(value bool)

func (Instance) SetNormalBias

func (self Instance) SetNormalBias(value Float.X)

func (Instance) SetPropagation

func (self Instance) SetPropagation(value Float.X)

func (Instance) SetUseTwoBounces

func (self Instance) SetUseTwoBounces(value bool)

func (*Instance) UnsafePointer

func (self *Instance) UnsafePointer() unsafe.Pointer

func (Instance) UseTwoBounces

func (self Instance) UseTwoBounces() bool

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

Jump to

Keyboard shortcuts

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