Documentation / scene
scene
A modern, modular 3D rendering framework built on top of the @zephyr3d/device API.
Remarks
This package provides a complete, extensible rendering stack targeting WebGPU/WebGL backends through @zephyr3d/device. It offers scene graph management, materials and shaders, forward-plus style lighting passes, shadow mapping, post-processing, GPU picking, animation, and a robust app/runtime layer to orchestrate rendering and resource lifecycles.
Enumerations
- ConstraintType
- ColliderForce
- HumanoidBodyRig
- HumanoidHandRig
- PostEffectLayer
- OctreePlacement
- MaterialVaryingFlags
Classes
- AnimationClip
- AnimationController
- AnimationPlayback
- AnimationSet
- AnimationTimeline
- AnimationTimelineRunner
- AnimationTrack
- GPUClothSystem
- NodeEulerRotationTrack
- FixedGeometryCacheTrack
- CCDSolver
- FABRIKSolver
- IKAngleConstraint
- IKChain
- IKConstraint
- IKSolver
- TwoBoneIKSolver
- IKModifier
- JointDynamicsSystemController
- JointDynamicsSystem
- JointDynamicsModifier
- MorphTargetGroupTrack
- MorphTargetTrack
- PCAGeometryCacheTrack
- PropertyTrack
- NodeRotationTrack
- NodeScaleTrack
- SkeletonRig
- SkinBinding
- Skeleton
- SkeletonModifier
MultiChainSpringSystem- SpringChain
- SpringSystem
SpringModifier- NodeTranslationTrack
- Application
- Engine
- InputManager
- RuntimeScript
- ScreenAdapter
- ScriptingSystem
- ScriptRegistry
- AssetManager
- NamedObject
- AssetHierarchyNode
- AssetSkeleton
- AssetScene
- SharedModel
- AvatarOutfitInstance
- AvatarWardrobe
- Blitter
- BoxFilterBlitter
- CopyBlitter
- GaussianBlurBlitter
- BaseCameraController
- Camera
- FPSCameraController
- OrbitCameraController
- OrthoCamera
- PerspectiveCamera
- BlinnMaterial
- GrassMaterial
- LambertMaterial
- Material
- MeshMaterial
- MToonMaterial
- ParticleMaterial
- PBRBluePrintMaterial
- PBRMetallicRoughnessMaterial
- PBRSpecularGlossinessMaterial
- ShaderHelper
- SkinMaterial
- SpriteMaterial
- StandardSpriteMaterial
- SpriteBlueprintMaterial
- SubsurfaceProfile
- ClipmapTerrainMaterial
- UnlitMaterial
- Bloom
- ColorAdjust
- Compositor
- FXAA
- Grayscale
- AbstractPostEffect
- SAO
- SkinSSS
- Tonemap
- ABufferOIT
- CullVisitor
- DepthPass
- DualDepthPeelingOIT
- EnvironmentLighting
- EnvShIBL
- EnvConstantAmbient
- EnvHemisphericAmbient
- FBMWaveGenerator
- FFTWaveGenerator
- GerstnerWaveGenerator
- Primitive
- InstanceBindGroupAllocator
- RenderQueue
- RGBlackboard
- DevicePoolAllocator
- RenderGraphExecutor
- HistoryResourceManager
- RenderGraph
- RGHandle
- RGSubpass
- RenderPass
- RenderTarget
- ScreenRenderTarget
- ShadowMapPass
- SkyRenderer
- WeightedBlendedOIT
- BaseSprite
- BatchGroup
- EnvLightWrapper
- Environment
- GraphNode
- BaseLight
- PunctualLight
- DirectionalLight
- PointLight
- SpotLight
- RectLight
- Mesh
- MSDFText
- MSDFTextSprite
- OctreeNode
- OctreeNodeChunk
- Octree
- ParticleSystem
- RaycastVisitor
- Scene
- SceneNode
- ScriptAttachment
- Sprite
- GrassLayer
- GrassRenderer
- ClipmapTerrain
- TextSprite
- Water
- ShadowRegion
- ShadowMapper
- BoxShape
- BoxFrameShape
- CapsuleShape
- CylinderShape
- PlaneShape
- Shape
- SphereShape
- TetrahedronShape
- TetrahedronFrameShape
- TorusShape
- FontAsset
- MSDFTextAtlasManager
- AABBTree
- ConstantScalarNode
- ConstantBooleanNode
- ConstantVec2Node
- ConstantBVec2Node
- ConstantVec3Node
- ConstantBVec3Node
- ConstantVec4Node
- ConstantBVec4Node
- MakeVectorNode
- SwizzleNode
- CompComparisonNode
- AnyConditionNode
- AllConditionNode
- SelectionNode
- TransformNode
- RotateAboutAxisNode
- GenericMathNode
- Degrees2RadiansNode
- Radians2DegreesNode
- SinNode
- CosNode
- TanNode
- ArcSinNode
- ArcCosNode
- ArcTanNode
- ArcTan2Node
- SinHNode
- CosHNode
- TanHNode
- ArcsineHNode
- ArccosineHNode
- ArctangentHNode
- ExpNode
- Exp2Node
- LogNode
- Log2Node
- SqrtNode
- InvSqrtNode
- AbsNode
- SignNode
- FloorNode
- CeilNode
- FractNode
- DDXNode
- DDYNode
- FWidthNode
- CompAddNode
- CompSubNode
- CompMulNode
- CompDivNode
- ModNode
- MinNode
- MaxNode
- PowNode
- StepNode
- SmoothStepNode
- FmaNode
- ClampNode
- SaturateNode
- MixNode
- NormalizeNode
- FaceForwardNode
- ReflectNode
- RefractNode
- LengthNode
- DistanceNode
- LogicallyAndNode
- LogicallyOrNode
- EqualNode
- NotEqualNode
- DotProductNode
- CrossProductNode
- SimplexNoise2DNode
- PerlinNoise2DNode
- Hash1Node
- Hash2Node
- Hash3Node
- FunctionCallNode
- FunctionInputNode
- FunctionOutputNode
- VertexOutputNode
- VertexIndexNode
- InstanceIndexNode
- VertexColorNode
- VertexUVNode
- VertexPositionNode
- PixelWorldPositionNode
- VertexNormalNode
- PixelNormalNode
- VertexTangentNode
- VertexBinormalNode
- ProjectionMatrixNode
- ViewMatrixNode
- ViewProjMatrixNode
- InvProjMatrixNode
- InvViewProjMatrixNode
- BillboardMatrixNode
- ElapsedTimeNode
- CameraPositionNode
- CameraVectorNode
- SkyEnvTextureNode
- CameraNearFarNode
- ResolveVertexPositionNode
- ResolveVertexNormalNode
- ResolveVertexTangentNode
- MaterialBlueprintIR
- PBRBlockNode
- VertexBlockNode
- SpriteBlockNode
- BaseTextureNode
- ConstantTexture2DNode
- ConstantTexture2DArrayNode
- ConstantTextureCubeNode
- PannerNode
- TextureSampleNode
- TextureSampleGrad
- BaseGraphNode
- BoundingBox
- DracoMeshDecoder
- ResourceManager
- CubemapSHProjector
Interfaces
- TwistConstraint
- IKJoint
- CollisionResult
- LineCollisionResult
- SurfaceCheckResult
- NearestPointsResult
- ConstraintBuildOptions
- PhysicsCurves
- ControllerConfig
- JointDynamicsColliderHandle
- JointDynamicsFlatPlaneHandle
- JointDynamicsGrabberHandle
- JointDynamicsColliderSnapshot
- JointDynamicsFlatPlaneSnapshot
- JointDynamicsGrabberSnapshot
- SimulationParams
- ApplyResultOutput
- PointR
- PointRW
- Constraint
- ColliderR
- ColliderRW
- GrabberR
- GrabberRW
- AngleLimitConfig
- FlatPlane
- PointInit
- TransformAccess
- BoneNode
- SkinnedBoundingBox
- InterChainConstraint
- MultiChainSpringSystemOptions
- SpringCollider
- SphereCollider
- CapsuleCollider
- PlaneCollider
- SpringConstraint
- SpringParticle
- SpringSystemOptions
- AppOptions
- AppCreationOptions
- IRenderable
- IRenderHook
- IAttachedScript
- ModelLoader
- AssetSamplerInfo
- AssetImageInfo
- AssetVertexBufferInfo
- AssetPrimitiveInfo
- AssetTextureInfo
- MaterialTextureInfo
- AssetMaterialCommon
- AssetMaterial
- AssetUnlitMaterial
- AssetMToonMaterial
- AssetMaterialSheen
- AssetMaterialClearcoat
- AssetMaterialTransmission
- AssetMaterialIridescence
- AssetPBRMaterialCommon
- AssetPBRMaterialMR
- AssetPBRMaterialSG
- AssetSubMeshData
- AssetMeshData
- AssetMorphTargetBinding
- AssetMorphTargetGroup
- AssetAnimationTrack
- AssetGeometryCacheFrame
- AssetFixedGeometryCacheAnimationTrack
- AssetPCAGeometryCacheAnimationTrack
- AssetAnimationData
- AssetSkeletalAnimationTrack
- AssetRotationTrack
- AssetTranslationTrack
- AssetScaleTrack
- AssetSpringBoneCollider
- AssetSpringBoneColliderGroup
- AssetSpringBoneJoint
- AssetSpringBone
- AssetJointDynamicsCollider
- AssetJointDynamicsChain
- AssetJointDynamicsFlatPlane
- AssetJointDynamicsSpringBone
- IBaseEvent
- IModKey
- IControllerMouseEvent
- IControllerPointerDownEvent
- IControllerPointerUpEvent
- IControllerPointerMoveEvent
- IControllerPointerCancelEvent
- IControllerWheelEvent
- IControllerKeyboardEvent
- IControllerKeydownEvent
- IControllerKeyupEvent
- IControllerKeypressEvent
- FPSCameraControllerOptions
- OrbitCameraControllerOptions
- IMixinFoliage
- IMixinVertexColor
- CompositorBuildLayerOptions
- CompositorBuildLayerResult
- PostEffectHistoryRead
- PostEffectOutput
- PostEffectSetupContext
- DrawContext
- Drawable
- BatchDrawable
- OIT
- InstanceData
- RenderQueueItem
- RenderItemListInfo
- RenderItemListBundle
- RenderItemList
- RenderQueueRef
- DrawableInstanceInfo
- ForwardPlusOptions
- RGTextureDesc
- RGExecuteContext
- RGPassBuilder
- RGResourceLifetime
- CompiledRenderGraph
- RGProfilingOptions
- RenderGraphExecutorOptions
- RGProfileScopeResult
- RGProfileResult
- RGResolvedSize
- RGFramebufferDesc
- RGTextureAllocator
- WaveGenerator
- MorphBoundingInfo
- SceneMorphTargetBinding
- SceneMorphTargetGroup
- SerializedMorphTargetBinding
- SerializedMorphTargetGroup
- Visitor
- BoxCreationOptions
- CapsuleCreationOptions
- CylinderCreationOptions
- PlaneCreationOptions
- ShapeCreationOptions
- SphereCreationOptions
- TetrahedronCreationOptions
- TorusCreationOptions
- IRUniformValue
- BluePrintUniformValue
- IRUniformTexture
- BluePrintUniformTexture
- BluePrintEditorState
- MaterialBlueprintIRBehaviors
- NodeConnection
- GraphStructure
- BlueprintDAG
- IGraphNode
- BoundingVolume
- Metadata
Type Aliases
- AnimationTimeRef
- AnimationMarker
- AnimationControllerStateDefinition
- AnimationControllerSetStateOptions
- AnimationControllerEventMap
- SkeletalAnimationMaskRootMotionMode
- SkeletalAnimationMaskUnsupportedTrackMode
- HumanoidSkeletalAnimationMaskPreset
- JointNameMatcher
- SkeletalAnimationMaskCommonOptions
- HumanoidSkeletalAnimationMaskOptions
- NamedJointsSkeletalAnimationMaskOptions
- SkeletalAnimationMaskOptions
- AnimationPlaybackSyncMode
- AnimationPlaybackSyncOptions
- PlayAnimationOptions
- StopAnimationOptions
- AnimationPlaybackState
- AnimationStopReason
- AnimationPlaybackEvent
- AnimationMarkerEvent
- AnimationFrameEvent
- AnimationPlaybackStopEvent
- AnimationPlaybackEventMap
- AnimationSetEventMap
- HumanoidRootMotionMode
- HumanoidRootMotionScaleMode
- HumanoidRetargetAxisLocks
- CopyHumanoidAnimationOptions
- AnimationTimelineActiveDisposition
- AnimationTimelineStateReturnTarget
- AnimationTimelineEventTarget
- AnimationTimelineEventPolicy
- AnimationTimelineEventResult
- AnimationTimelineEventResponse
- AnimationTimelineStep
- AnimationTimelineDefinition
- AnimationTimelineRunnerEventMap
- AnimationTimelineRunnerState
- GPUClothSystemOptions
- GPUClothWrapBindingData
- GPUClothWrapBindingTarget
- FixedGeometryCacheFrame
- FixedGeometryCacheState
- GeometryCacheFrame
- GeometryCacheState
- GeometryCacheMeshBinding
- ControllerConfigUpdate
- JointChainConfig
- JointDynamicSystemConfig
- MorphState
- PCAGeometryCacheTrackData
- PCAGeometryCacheState
- HumanoidJointMapping
- SkeletonBindPose
- SkeletonRigOptions
- EditorMode
- LogMode
- RenderFunc
- InputEventHandler
- RuntimeScriptPropertyType
- RuntimeScriptValueType
- RuntimeScriptPropertyOptions
- RuntimeScriptValueDeclaration
- RuntimeScriptObjectFieldDeclaration
- RuntimeScriptObjectDeclaration
- RuntimeScriptArrayElementDeclaration
- RuntimeScriptArrayDeclaration
- RuntimeScriptPropertyDeclaration
- RuntimeScriptPropertyInfo
- RuntimeScriptConfig
- ScreenScaleMode
- ScreenConfig
- PointTransform
- ResolutionTransform
- Host
- ScriptingSystemOptions
- BaseFetchOptions
- FontAssetFetchOptions
- TextureFetchOptions
- ModelFetchOptions
- ModelInfo
- AssetGeometryCacheAnimationTrack
- AssetSpringBoneColliderShape
- SaveOptions
- AvatarSlotId
- AvatarBindMode
- AvatarFitMode
- AvatarOutfitSource
- AvatarBodyRegionTarget
- AvatarBodyRegions
- AvatarJointMap
- AvatarSlotOptions
- AvatarWardrobeOptions
- AvatarEquipOptions
- AvatarOutfitValidation
- BlitType
- PickResult
- CameraHistoryData
- RenderPath
- CameraOITMode
- SSSDebugView
- SSSQualityPreset
- SSSResolvedSettings
- BlendMode
- ExtractMixinReturnType
- ExtractMixinType
- InstanceUniformType
- IMixinAlbedoColor
- IMixinBlinnPhong
- IMixinLambert
- IMixinPBRBluePrint
- PBRReflectionMode
- IMixinPBRMetallicRoughness
- IMixinPBRSpecularGlossiness
- IMixinLight
- IMixinPBRCommon
- ToMixedTextureType
- TextureMixinTypes
- TextureMixinInstanceTypes
- TextureProp
- TexturePropUniforms
- MToonOutlineWidthMode
- PBRBlueprintOutputName
- SubsurfaceProfilePreset
- TerrainDebugMode
- PickTarget
- MorphData
- MorphInfo
- EnvLightType
- CachedBindGroup
- RGSizeMode
- RGExecuteFn
- RGProfileScopeType
- SkyType
- FogType
- MeshUpdateCallback
- EmitterShape
- EmitterBehavior
- NodeIterateFunc
- SceneNodeVisible
- ScriptAttachmentConfig
- GrassInstanceInfo
- ShadowMode
- ShadowQualityPreset
- ShapeType
- ShapeOptionType
- FontAssetMSDFAtlasSettings
- PairAdjustment
- GlyphPoint
- GlyphContour
- GlyphData
- FontMetrics
- MSDFOptions
- MSDFBitmap
- EdgeColor
- ColoredLineEdge
- ColoredQuadraticEdge
- ColoredEdge
- MSDFShape
- ComparisonMode
- GraphNodeInput
- GraphNodeOutput
- SamplerType
- PropertyType
- PropertyToType
- PropertyValue
- PropEdit
- PropertySceneNodeOptions
- PropertyAccessorOptions
- PropertyAccessor
- SerializableClass
Variables
- EPSILON
- FrameResources
- RGHistoryResources
- RENDER_PASS_TYPE_LIGHT
- RENDER_PASS_TYPE_SHADOWMAP
- RENDER_PASS_TYPE_DEPTH
- RENDER_PASS_TYPE_OBJECT_COLOR
- BUILTIN_ASSET_TEXTURE_SHEEN_LUT
- BUILTIN_ASSET_TEST_CUBEMAP
- LIGHT_TYPE_NONE
- LIGHT_TYPE_DIRECTIONAL
- LIGHT_TYPE_POINT
- LIGHT_TYPE_SPOT
- LIGHT_TYPE_RECT
- MAX_CLUSTERED_LIGHTS
- MAX_SHADOW_MASK_LIGHTS
- QUEUE_OPAQUE
- QUEUE_TRANSPARENT
- MORPH_TARGET_POSITION
- MORPH_TARGET_NORMAL
- MORPH_TARGET_TANGENT
- MORPH_TARGET_COLOR
- MORPH_TARGET_TEX0
- MORPH_TARGET_TEX1
- MORPH_TARGET_TEX2
- MORPH_TARGET_TEX3
- MAX_MORPH_ATTRIBUTES
- MAX_MORPH_TARGETS
- MORPH_WEIGHTS_VECTOR_COUNT
- MORPH_ATTRIBUTE_VECTOR_COUNT
- MAX_TERRAIN_MIPMAP_LEVELS
- MAX_GERSTNER_WAVE_COUNT
- ATMOSPHERIC_FOG_BIT
- HEIGHT_FOG_BIT
Functions
- isGPUClothSupported
- createGPUClothWrapBindingData
- createGeometryCacheState
- mixGeometryCacheBoundingBox
- ensureGeometryCacheMeshBinding
- restoreGeometryCacheMeshBinding
- pushoutFromSphere
- pushoutFromCollider
- pushoutFromCapsule
- pushInFromSphere
- pushInFromCollider
- pushInFromCapsule
- collisionDetectionSphere
- collisionDetectionCapsule
- collisionDetection
- pushInCollisionDetection
- computeNearestPoints
- checkSurfaceCollision
- buildConstraints
- buildSurfaceFaces
- computeMaxDepth
- sortRootPointsByProximity
- createTransformAccess
- simulate
- applyResult
- applyAngleLimits
- createSphereCollider
- createCapsuleCollider
- createPlaneCollider
- resolveSphereCollision
- resolveCapsuleCollision
- resolvePlaneCollision
- updateColliderFromNode
- createSpringConstraint
- createSpringParticle
- getApp
- tryGetApp
- getEngine
- getDevice
- getInput
- scriptProp
- getRuntimeScriptProperties
- normalizeRuntimeScriptConfig
- applyRuntimeScriptConfig
- applyMaterialMixins
- mixinAlbedoColor
- mixinFoliage
- mixinBlinnPhong
- mixinLambert
- mixinPBRBluePrint
- mixinPBRMetallicRoughness
- mixinPBRSpecularGlossness
- mixinLight
- mixinPBRCommon
- mixinTextureProps
- mixinVertexColor
- buildForwardPlusGraph
- executeForwardPlusGraph
- normalizeScriptAttachmentConfig
- normalizeScriptAttachments
- decodeFloatFromRGBA
- encodeFloatToRGBA
- decodeNormalizedFloatFromRGBA
- encodeNormalizedFloatToRGBA
- encode2HalfToRGBA
- decode2HalfFromRGBA
- encodeRGBM
- decodeRGBM
- gammaToLinear
- linearToGamma
- hash11
- hash21
- hash31
- hash12
- hash22
- hash32
- hash13
- hash23
- hash33
- whiteNoise
- valueNoise
- gradient
- perlinNoise2D
- perlinNoise3D
- worleyNoise
- worleyFBM
- noise3D
- smoothNoise3D
- interleavedGradientNoise
- temporalResolve
- generateMSDF
- buildMSDFShape
- fetchSampler
- getSamplerOptions
- panoramaToCubemap
- prefilterCubemap
- defineProps