Small World Engine API Reference - v0.78.00
    Preparing search index...

    Class GravitationalLensingElement

    Gravitational Lensing (Black Hole relativistic spacetime distortion & Einstein ring).

    Hierarchy (View Summary)

    Index
    enabled: boolean = true

    If false, the effect will be bypassed (cheap).

    eventHorizonRadius: number = 0.03

    Radius of the event horizon in normalized screen coordinates (default: 0.03).

    relativisticBeaming: number = 1.2

    Relativistic beaming intensity (default: 1.2).

    ringGlowIntensity: number = 2.5

    Photon sphere / Einstein ring glow multiplier (default: 2.5).

    singularityScreenPos: Vector3D = ...

    Screen-space projected singularity position in NDC [-1, 1]. Z >= -1 means in front of camera; Z = -2 (sentinel from Camera.project) bypasses lensing.

    spaghettification: number = 0.15

    Spaghettification factor near event horizon (default: 0.15).

    strength: number = 0.25

    Strength of the gravitational space-bending deflection (default: 0.25).

    type: GRAVITATIONAL_LENSING = PostProcessingEffectType.GRAVITATIONAL_LENSING

    Unique string identifier for the effect.