PRO

Bunker Scene

A concrete bunker at night with a red BLANK sign. Behind it a hidden light flickers on, off and on again, and red god rays push through every opening in the facade. Dust drifts in front, film noise sits on top, and the camera circles slowly until the cursor takes over.

Component
Color
Position x
-0.1
Position y
-0.15
Position z
-0.45
Install
npx shadcn@latest add @compronents/bunker-scene

Installs from ui.aryank.space. Needs a registry token and a one-time @compronents entry in components.json. The docs walk through both.

Files
Checking access…
API
PropTypeDefaultDescription
modelSrcstring—GLB with the facade and interior meshes. Defaults to the hosted bunker without its sign.
dracoDecoderPathstring—Draco decoder folder, only needed for a Draco-compressed model.
sign"blank" | "model""blank"blank extrudes the BLANK mark. model keeps whatever sign the model has; the hosted model has none.
sunColorColorRepresentation"#ff0000"Colour of the hidden light box and so of the rays. Updates live.
sunPosition[number, number, number][-0.1, -0.15, -0.45]Light box position inside the rotated world group. Updates live.
godRaysPartial<BunkerSceneGodRays>—samples 100, density 0.9, decay 0.92, weight 0.4, exposure 0.4, clampMax 1, kernelSize MEDIUM, blur true. density, decay, weight, exposure and clampMax update live; samples, kernelSize and blur rebuild the scene.
noisebooleantrueColour-dodge film noise on or off. Updates live.
noiseOpacitynumber0.75Film noise opacity, 0 to 1. Updates live.
fogColorColorRepresentation"#000000"Linear fog colour. Updates live.
fogNearnumber8.8Fog start distance. Updates live.
fogFarnumber9.6Fog end distance. Fog hides the far side of the facade. Updates live.
ambientLightIntensitynumber0.8White ambient light, 0 to 1. Updates live.
particleCountnumber1000Dust points in front of the facade. Changing it rebuilds the scene.
particleSizenumber25Point size, 0 to 300. Updates live.
particleColorColorRepresentation"#ffffff"Dust colour. Updates live.
particleAlphanumber0.25Peak alpha of each additive point, 0 to 1. Updates live.
particleSpeednumber0.1Speed of the noise the dust drifts on, 0 to 1. Updates live.
particleDisplacementnumber0.5How far the dust drifts in world units, 0 to 1. Updates live.
rotationStrengthnumber1Camera swing. 0 holds the camera still. Updates live.
rationumber21 / 9Width over height of the canvas.
classNamestring—Class on the root.
styleCSSProperties—Additional styles for the root.
Dependencies
threepostprocessinggsap