LavaUI docs GitHub

struct Reflection3DStyle

Swift

struct Reflection3DStyle

A mirror image of a 3D object in a horizontal floor, fading with distance.

Sources/LavaUI/Spatial.swift:280

Constructors

init(planeY: Float = -0.75, opacity: Float = 0.3, fadeDistance: Float = 1.6, blurRadius: Float = 1.5)

Creates a reflection style.

Sources/LavaUI/Spatial.swift:291

Properties

var blurRadius: Float

Blur applied to the reflection, in pixels.

Sources/LavaUI/Spatial.swift:288

var fadeDistance: Float

Distance from the plane, in world units, over which the reflection fades out.

Sources/LavaUI/Spatial.swift:286

var opacity: Float

Opacity of the reflection where it meets the plane, 0–1.

Sources/LavaUI/Spatial.swift:284

var planeY: Float

Horizontal world-space plane across which geometry is mirrored.

Sources/LavaUI/Spatial.swift:282