Skip to main content

fallback_frame_from_scene3d

Function fallback_frame_from_scene3d 

Source
pub fn fallback_frame_from_scene3d(
    scene: &Scene3D,
    viewport_w: f32,
    viewport_h: f32,
) -> RetainedTerrainFrame
Expand description

Converts a regular Scene3D (primitives/custom meshes) into a RetainedTerrainFrame so standard 3D scenes also accelerate seamlessly through Wgpu3DRenderer.