FilamentView
A viewport onto a FilamentScene. Each FilamentView owns one Filament View, Camera, Renderer, and platform surface, and renders the given scene through them. Place several FilamentViews — anywhere in your layout — to render one scene through different cameras and post-processing setups.
FilamentView is a leaf: the world is declared in rememberFilamentScene and the look of this viewport is configured by value (cameraState, postProcessing, the render flags). For imperative access (picking, raw View/Renderer) pass a rememberFilamentViewState.
val scene = rememberFilamentScene { Light(...); GltfInstance(duck) }
Row {
FilamentView(scene, Modifier.weight(1f), cameraState = cam1,
postProcessing = PostProcessing(bloom = Bloom(strength = 0.2f)))
FilamentView(scene, Modifier.weight(1f), cameraState = cam2)
}Parameters
The scene to render, from rememberFilamentScene. Supplies the shared engine.
Hoisted camera state. The default constructs a new state per view.
Hoisted handle exposing the live View/Renderer and pick().
Per-view post-processing and render-quality configuration.
Skip rendering of objects outside the camera frustum.
Allow lights to cast and receive shadows.
Enable screen-space refraction for refractive materials.
Allocate a stencil buffer (required for stencil-based effects).