Subdiv

    VoxelGI.swift:22
    enum 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, the VoxelGI will have banding artifacts or may have over-exposure artifacts.

    • var data: VoxelGIData?

      The VoxelGIData resource that holds the data for this VoxelGI.

    • var size: Vector3

      The size of the area covered by the VoxelGI. If you make the size larger without increasing the subdivisions with subdiv, 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 GeometryInstance3Ds marked with GeometryInstance3D/GIMode/`static``` and Light3Ds marked with either Light3D/BakeMode/bakeStaticorLight3D/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 theVoxelGI``’s data and debug any issues that may be occurring.

    • func debugBake()

      Calls bake(fromNode:createVisualDebug:) with create_visual_debug enabled.

    Citizens in SwiftGodot

    Conformances

    Type members

    Instance members

    Type features

    Instance features