Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
Subdiv
VoxelGI.swift:22enum Subdiv
Cases
case subdiv64
Use 64 subdivisions. This is the lowest quality setting, but the fastest. Use it if you can, but especially use it on lower-end hardware.
case subdiv128
Use 128 subdivisions. This is the default quality setting.
case subdiv256
Use 256 subdivisions.
case subdiv512
Use 512 subdivisions. This is the highest quality setting, but the slowest. On lower-end hardware, this could cause the GPU to stall.
case max
Represents the size of the
Subdiv
enum.
Other members in extension
Type members
Instance members
var cameraAttributes: CameraAttributes?
The
CameraAttributes
resource that specifies exposure levels to bake at. Auto-exposure and non exposure properties will be ignored. Exposure settings should be used to reduce the dynamic range present when baking. If exposure is too high, theVoxelGI
will have banding artifacts or may have over-exposure artifacts.var data: VoxelGIData?
The
VoxelGIData
resource that holds the data for thisVoxelGI
.var size: Vector3
The size of the area covered by the
VoxelGI
. If you make the size larger without increasing the subdivisions withsubdiv
, the size of each cell will increase and result in lower detailed lighting.var subdiv: VoxelGI.Subdiv
Number of times to subdivide the grid that the
VoxelGI
operates on. A higher number results in finer detail and thus higher visual quality, while lower numbers result in better performance.func bake(fromNode: Node?, createVisualDebug: Bool
) Bakes the effect from all
GeometryInstance3D
s marked withGeometryInstance3D/GIMode/`static``` and
Light3Ds marked with either
Light3D/BakeMode/bakeStaticor
Light3D/BakeMode/bakeDynamic. If `createVisualDebug` is `true`, after baking the light, this will generate a
MultiMeshthat has a cube representing each solid cell with each cube colored to the cell's albedo color. This can be used to visualize the
VoxelGI``’s data and debug any issues that may be occurring.func debugBake(
) Calls
bake(fromNode:createVisualDebug:)
withcreate_visual_debug
enabled.
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.