struct Shadow3DStyle
Swift
struct Shadow3DStyle
A soft shadow under a 3D object, drawn on the screen rather than cast in the world.
Sources/LavaUI/Spatial.swift:254
Constructors
init(color: Color = Color(r: 0, g: 0, b: 0), radius: Float = 16, offsetX: Float = 7, offsetY: Float = 11, opacity: Float = 0.32)
Creates a shadow style. The opacity is clamped to 0–1.
Sources/LavaUI/Spatial.swift:267
Properties
var color: Color
Colour of the shadow.
Sources/LavaUI/Spatial.swift:256
var offsetX: Float
Horizontal offset of the shadow from the object, in pixels.
Sources/LavaUI/Spatial.swift:260
var offsetY: Float
Vertical offset of the shadow from the object, in pixels. Positive is down.
Sources/LavaUI/Spatial.swift:262
var opacity: Float
Opacity of the shadow, 0–1.
Sources/LavaUI/Spatial.swift:264
var radius: Float
Blur radius of the shadow, in pixels.
Sources/LavaUI/Spatial.swift:258