Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
RadianceSize
Sky.swift:13enum RadianceSize
Cases
case radianceSize32
Radiance texture size is 32×32 pixels.
case radianceSize64
Radiance texture size is 64×64 pixels.
case radianceSize128
Radiance texture size is 128×128 pixels.
case radianceSize256
Radiance texture size is 256×256 pixels.
case radianceSize512
Radiance texture size is 512×512 pixels.
case radianceSize1024
Radiance texture size is 1024×1024 pixels.
case radianceSize2048
Radiance texture size is 2048×2048 pixels.
case max
Represents the size of the
RadianceSize
enum.
Other members in extension
Types
Type members
Instance members
var processMode: Sky.ProcessMode
Sets the method for generating the radiance map from the sky. The radiance map is a cubemap with increasingly blurry versions of the sky corresponding to different levels of roughness. Radiance maps can be expensive to calculate. See
ProcessMode
for options.var radianceSize: Sky.RadianceSize
The
Sky
’s radiance map size. The higher the radiance map size, the more detailed the lighting from theSky
will be.var skyMaterial: Material?
Material
used to draw the background. Can bePanoramaSkyMaterial
,ProceduralSkyMaterial
,PhysicalSkyMaterial
, or even aShaderMaterial
if you want to use your own custom shader.
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.