Introduction
angular-three-soba/misc provides miscellaneous utilities and components for animations, shadows, frame buffer objects (FBOs), HTML overlays, and more.
Animations
Section titled âAnimationsâ- animations - Create animation API for managing THREE.js animation clips
Frame Buffer Objects
Section titled âFrame Buffer Objectsâ- fbo - Create
WebGLRenderTargetfor off-screen rendering - NgtsFBO - Structural directive for rendering to FBO via
ng-template - depthBuffer - Create depth buffer texture for effects like soft particles or SSAO
Shadows
Section titled âShadowsâ- NgtsBakeShadows - Bake shadows for improved performance
Sampling
Section titled âSamplingâ- NgtsSampler - Distribute instances across a mesh surface
- surfaceSampler - Sample points on a mesh surface
Geometry & Attributes
Section titled âGeometry & Attributesâ- NgtsComputedAttribute - Compute and attach attributes to geometry declaratively
- NgtsDecal - Abstraction around THREE.js
DecalGeometry
HTML Integration
Section titled âHTML Integrationâ- NgtsHTML - Render HTML content positioned in 3D space
Visibility & Frustum
Section titled âVisibility & Frustumâ- intersect - Track whether an object is within the cameraâs view frustum
- NgtsIntersect - Directive for tracking Object3D visibility
Performance
Section titled âPerformanceâ- NgtsPreload - Pre-compile shaders and textures to reduce runtime jank
Utilities
Section titled âUtilitiesâ- calculateScaleFactor - Maintain consistent pixel-size at a 3D position
- getVersion - Get the current THREE.js version as a number
- setUpdateRange - Set update range on BufferAttribute for partial GPU uploads