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

    Class Scene

    A scene that holds a collection of 3D objects.

    Index
    brdfLUT?: Texture
    dynamicOctree: Octree | undefined = undefined
    environmentIntensity: number = 1.0
    fog?: Fog
    irradianceMap?: CubeTexture
    prefilterMap?: CubeTexture
    root: Object3D = ...
    spatialHash: SpatialHash | undefined = undefined
    staticColliders: Collidable[] = []

    Lightweight static colliders (e.g. StaticCollider) that aren't part of the Object3D scene graph. PhysicsSystem reads this in addition to walking objects, so non-Object3D obstacles participate in collision resolution too.

    staticOctree: Octree | undefined = undefined
    • Drains and returns the objects removed from this scene since the last call. Renderers call this once per frame to release GPU resources tied to objects that have actually left the scene graph.

      Returns Object3D[]

    • Returns visible objects, respecting BOTH user visibility and frustum state. Separates opaque and transparent objects. Opaque Grouping: shaderId -> topology -> matUuid -> Object3D[] Transparent: Object3D[] sorted back-to-front

      Parameters

      Returns RenderList

    • Parameters

      • deltaTime: number = 0

      Returns void