Skip to main content

Module scene3d

Module scene3d 

Source
Expand description

Unified 3D Engine: High-level Three.js ergonomics paired seamlessly with low-level Vulkan/OpenGL hardware pipelines.

Re-exports§

pub use crate::texture3d::SamplerDesc;
pub use crate::texture3d::TextureData;
pub use crate::texture3d::TextureDesc;
pub use crate::texture3d::TextureId;
pub use crate::texture3d::TextureStore;
pub use crate::texture3d::UvTransform;

Structs§

AmbientLight
AmbientLightBuilder
BoxGeometry
BoxGeometryBuilder
Canvas3D
Canvas3DBuilder
CelestialBody3D
An emissive celestial body drawn as a billboard: the sun, the moon, or a sensor anomaly marker.
CloudShell3D
A translucent spherical shell drawn over the surface: clouds, a night arc, or a coverage wash.
CylinderGeometry
CylinderGeometryBuilder
DirectionalLight
DirectionalLightBuilder
Mesh
Mesh3D
A 3D Mesh in the Scene Graph: Seamlessly pairs high-level or low-level geometry with materials.
MeshBuilder
OrthographicCamera
OrthographicCameraBuilder
PerspectiveCamera
PerspectiveCameraBuilder
PlaneGeometry
PlaneGeometryBuilder
PointLight
PointLightBuilder
RetainedCameraUniforms
Camera and lighting uniforms needed for O(1) RTE GPU frame presentation without scene rebuilds.
RetainedCubemapTexture
6-face RGBA8 cubemap texture uploadable to wgpu (TextureViewDimension::Cube).
RetainedDynamicMesh
Dynamic or non-grid RTC geometry (buildings, vector ribbons, trajectories) anchored in ECEF.
RetainedEnvironmentAssets
Persistent GPU-uploadable planetary & space environment assets (land mask, cloud map, Moon, star catalog, space skybox).
RetainedGeoInstance
Hardware-instanced 3D object anchored in double-precision ECEF / morphed planetary space.
RetainedMeshAsset
Canonical local-space 3D mesh asset uploaded once to GPU VRAM and shared across any number of RetainedGeoInstances.
RetainedOceanSurface
GPU-native per-pixel ocean wave spectrum & optional coastal shoreline shoaling descriptor.
RetainedOceanWaveTrain
One directional wind-driven ocean wave train for smooth dual-state wind cross-fading.
RetainedParticleLayer
GPU-instanced camera-local toroidal 2D billboard particle volume.
RetainedScene3D
Thread-safe retained 3D scene handle shared between host state (camera/worker) and Canvas3D.
RetainedStar
One real catalog star in J2000 ICRF celestial coordinates.
RetainedTerrainFrame
Snapshot of retained terrain tiles, textures, dynamic meshes, instanced geo objects, GPU-instanced 2D camera-local particle volumes, GPU ocean surface, and camera parameters.
RetainedTileInstance
Lightweight per-frame tile draw instance referencing cached geometry and imagery.
RetainedTileMesh
Persistent GPU-ready tile geometry computed once per (TileKeyId, revision).
RetainedTileTexture
Persistent GPU-ready tile imagery payload computed once per (id, revision).
RteTileVertex
Tile-local RTC terrain vertex packed into two vec4<f32>s for GPU vertex pulling.
Scene3D
Top-Level 3D Scene representation embedded in a Strata Viewport.
ShaderMaterial
ShaderMaterialBuilder
SphereGeometry
SphereGeometryBuilder
StandardMaterial
StandardMaterialBuilder
TexturedBatchMaterial3D
A textured mesh with several texture draws sharing one vertex and index buffer.
TexturedDraw3D
One index range of a batched textured mesh, with its own material.
TexturedMaterial3D
Textured surface material.
TileKeyId
Compact, backend-agnostic identifier for a terrain tile in a quadtree or flat-patch pyramid.
Transform3D
3D Spatial Transformation

Enums§

Background3D
What the rasterizer fills before any geometry is drawn.
Camera3D
3D Camera Abstractions
Geometry3D
3D Geometry: Supports both parametric Three.js-style primitives and low-level custom vertex buffers.
Light3D
3D Lighting
Material3D
3D Material: Unifies high-level PBR workflows with low-level custom hardware shaders.
RetainedParticleBillboard
Billboard alignment strategy for a GPU-instanced RetainedParticleLayer.
RetainedParticleSprite
2D sprite rendering mode for a GPU-instanced RetainedParticleLayer.
ShaderSource
Low-Level Hardware Shader Source

Traits§

IntoCameraChangeProp
Conversion trait allowing on_camera_change on 3D viewports (Canvas3D, SceneViewport) to accept closures, Rc<dyn Fn(&OrbitControls)>, or Option<Rc<dyn Fn(&OrbitControls)>>.
IntoScene3DProp
Conversion trait allowing RSX <Canvas3D scene={...}> and <SceneViewport scene={...}> props to accept owned Scene3D, Option<Scene3D>, or zero-copy Arc<Scene3D> handles.

Functions§

AmbientLight
BoxGeometry
Canvas3D
CylinderGeometry
DirectionalLight
Mesh
OrthographicCamera
PerspectiveCamera
PlaneGeometry
PointLight
ShaderMaterial
SphereGeometry
StandardMaterial
attach_orbit_controls_listeners
Attaches built-in OrbitControls pointer drag (orbit/pan) and wheel (zoom) listeners to a 3D canvas attribute list, invoking cb whenever the camera state changes.
compile_scene3d_from_blueprint
Compiles a <Canvas3D> blueprint subtree (including any attached programmatic ScenePayload) into a populated Scene3D instance.
extract_scene3d_arc_from_blueprint
Extracts an Arc<Scene3D> from a <Canvas3D> or viewport NodeBlueprint: returns a zero-copy Arc::clone when an explicit Attribute::ScenePayload is attached with no declarative child overrides, or compiles declarative children when present.
overlay_text_rasterizer
Returns the installed overlay text rasterizer, if any.
register_overlay_text_rasterizer
Installs the overlay text rasterizer for this thread.

Type Aliases§

TextRasterizer
Callback that rasterizes a text run into the framebuffer.