The pack
godRays3d
function godRays3d(opts: GodRays3dOptions = {}): Pack<{ godRays: GodRays3dApi }>
The god-rays-3d pack: light shafts marched toward the sun at half resolution and added into the scene.
Requires a 3D world and render-3d, whose depth it marches and whose sun position it follows.
Types
GodRays3dApi
interface GodRays3dApi
game.godRays.
strength: number— Shaft brightness, live.decay: number— Per-step falloff, live.enabled: boolean— Turn it off entirely.readonly visible: boolean— Whether the sun is on screen and the shafts are actually drawing.
GodRays3dOptions
interface GodRays3dOptions
How the shafts look. Every field is live.
strength?: number— Overall shaft brightness. Default 0.9.decay?: number— Per-step energy falloff along the march. Default 0.94.enabled?: boolean— Whether the pass runs at all. Default true.


