Interface SceneContext
animationGroups: AnimationGroup[];
camera: Camera | null;
clearColor: GPUColorDict;
clipPlane: ClipPlane | null;
defaultRenderTask?: RenderTask;
environmentPrimaryColor?: [number, number, number];
fixedDeltaMs: number;
fog: FogConfig | null;
imageProcessing: ImageProcessingConfig;
lights: LightBase[];
meshes: Mesh[];
name?: string;
shadowGenerators: ShadowGenerator[];
surface: SurfaceContext;
}
Hierarchy (View Summary)
- RenderingContext
- SceneContext
Properties
animation Groups
Animation groups loaded from glTF or created manually.
camera
clear Color
Clear color used when this context is the first active one in a frame.
clip Plane
Scene clip plane as (normal.x, normal.y, normal.z, d). Matches Babylon.js Plane dot(worldPosition, plane) > 0 discard semantics.
Optional Readonlydefault Render Task
Factory-created default producer, absent when defaultRenderTask is false.
Optionalenvironment Primary Color
Background material primaryColor (linear RGB). Default from Babylon createDefaultEnvironment.
fixed Delta Ms
Fixed delta time in ms for deterministic animation. 0 = use real rAF delta.
fog
Fog configuration. Null = no fog.
image Processing
lights
meshes
All meshes added to the scene (standard + PBR).
Optionalname
Optional display name for tooling and diagnostics.
shadow Generators
Shadow generators registered on this scene.
Readonlysurface
Surface this scene renders into. Set at scene-creation time and immutable
afterwards — the default render task is sized and MSAA-matched to this surface,
and registerScene attaches the scene to it. For the engine's primary surface
(the common single-canvas case) this is the engine itself. The owning engine is
reachable via scene.surface.engine.
Top-level scene context — pure state, no attached methods.