You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added offscreen render targets. A RenderTexture is a fixed-size target a RenderView can render into (RenderView.target); add such views to the new Scene.views list and they render whenever the scene renders, ordered before the screen views. The target's update policy (everyFrame, interval, or manual + requestUpdate, mirroring WidgetUpdatePolicy) controls re-render cadence, and resize reallocates on the fly. Display a live target in the widget tree with the new RenderTextureView widget (with an opt-in followLayout mode that sizes the target from widget layout). Views also gain a per-view antiAliasingMode override that defaults to the scene's setting.
The prefiltered-radiance environment now stores its roughness bands as mip levels of one equirect texture, sampled with hardware trilinear textureLod (smoother roughness transitions, ~25% less memory, no band-seam clamping). Enabled by the recent Flutter GPU mip support (render-to-mip-level, mip samplers, and sampling manually-written mip chains). The legacy stacked-band atlas remains supported, selectable via the new EnvironmentMap.useMipRadianceLayout static (each environment carries its own layout, and the SamplePrefilteredRadiance shader contract for custom materials is unchanged). The web backend gained render-to-mip-level attachments and mip-aware sampler filtering.
Fixed dim image-based specular lighting on the web backend. The radiance prefilter (a float render-to-texture) comes out degenerate on a cold WebGL context, before the first frame has been composited, and is correct once the context is warm. Environments built before then (the lazily built default, or any an app builds up front) now retain their source and re-bake their radiance once a frame has been presented, so the first frame may show dim specular IBL but every frame after is correct.
The base shader bundle now loads asynchronously on every backend, following ShaderLibrary.fromAsset becoming async. Native joins web in requiring the bundle to be loaded ahead of time by awaiting Scene.initializeStaticResources() before constructing geometry or materials; the native synchronous load on first access is gone.
The flutter SDK constraint is now >=3.44.0 (the latest stable, so the package can be analyzed and scored on pub.dev). The actual requirement is newer, a Flutter master build from 2026-06-09 or later (render-to-mip-level Flutter GPU support, flutter/flutter#187685); see the README.
Render targets serialize in .fscene. Documents gain a renderTexture resource kind (size, update policy, sampling) and a top-level views array binding camera nodes to targets with per-view settings; material texture slots reference the same resource id the producing view targets, so the wiring survives a round trip. Realize with the new realizeViews (after realizeScene, sharing live targets with the materials that sample them) and write back with serializeViews. The stage now also carries the scene's anti-aliasing mode, render scale, and filter quality. CameraComponent.toCamera() now returns a NodeCamera that tracks its node live (previously it snapshotted the transform), so node-driven cameras work in persistent views.
Material texture slots now accept a RenderTexture for live render-to-texture sampling, the security-camera/monitor/mirror pattern. PhysicallyBasedMaterial and UnlitMaterial texture setters (and ShaderMaterial.setTexture) take either a gpu.Texture or a RenderTexture; a render texture resolves to its latest completed frame at draw time and brings its own sampling options (the new RenderTexture.sampling, bilinear + clamped by default). A capture that can see its own consumer (including a target sampling itself) reads the previous frame instead of forming a feedback loop, and a target with no completed frame yet resolves to the slot's neutral placeholder.
Added render scaling and composite filtering. Scene.renderScale (default 1.0) scales the resolution screen views render at relative to the display's native resolution, trading sharpness for fragment work below 1.0 and supersampling above it, and Scene.filterQuality (default medium) sets the sampling quality the rendered image is composited onto the canvas with. Both have per-view overrides on RenderView (renderScale, filterQuality).
Added FXAA and an automatic anti-aliasing mode. AntiAliasingMode gains fxaa (a post-process pass over the tone-mapped image, available on every backend) and auto (MSAA where the backend supports it, FXAA otherwise), and auto is the new default. Backends without offscreen MSAA support previously rendered with no anti-aliasing at all; they now get FXAA. Scene.antiAliasingMode now always keeps the requested mode (instead of ignoring unsupported assignments), the new Scene.effectiveAntiAliasingMode reports the technique that actually runs, and the new static Scene.isAntiAliasingModeSupported answers support queries without touching the Flutter GPU API.
Adopted hardware instancing: InstancedMesh draws upload every instance transform to an instance-rate vertex buffer and render with a single instanced draw call per winding-parity group (in the color, depth-prepass, and shadow passes), instead of rebinding the model uniform and drawing once per instance. The unskinned vertex shader now consumes the model matrix from instance attributes, and the WebGL2 backend gained VertexStepMode/VertexLayout support and instanced draw calls. Custom geometry overriding bind with the standard unskinned shader picks up the new path automatically; custom vertex shaders with their own uniform layouts are unaffected. Breaking for code that builds vertex layouts directly, VertexLayout is now constructed from a list of VertexBuffers (each carrying its own stride and step mode) instead of a single strideInBytes.
BREAKING: the package exports are now explicit show lists; implementation details that previously leaked from wholesale exports (the scene encoder, render-graph texture pooling, environment-prefilter internals, animation channel/resolver plumbing, and the fscene built-in codec classes) are no longer exported. If something you used disappeared, please file an issue, re-exporting an accidentally hidden symbol is a quick patch release.
Added scene raycasting: Scene.raycast / Scene.raycastAll cast a ray through the rendered meshes (no colliders or physics setup) and return typed hits with the distance, world point, geometric normal, barycentric weights, triangle index, and the texture coordinate interpolated from the vertex data. Filtering: invisible subtrees are skipped by default, plus a layer mask, the new Node.raycastable flag (geometry that renders but is transparent to rays), and an optional predicate. Distinct from the physics queries, which test collision shapes.
Added WidgetComponent: a live widget subtree on a scene surface. The widget stays fully interactive (state, tickers, animations) while SceneView hosts it invisibly and streams its visual output into a texture. Zero-config use creates an aspect-correct alpha-blended quad; bring your own geometry or material (with implicit binding for the built-in materials or a bind callback), or use bindOnly to texture a surface that already exists, such as a screen inside an imported model. Captures follow a WidgetUpdatePolicy (every frame by default, interval, or manual) and dialogs and dropdowns render inside the texture.
Added automatic widget-surface input: platform pointer events raycast into the scene, and presses, drags, and scrolls forward into the widgets at the hit UV, on any geometry, blocked by occluding geometry, with pointer capture keeping drags alive at surface edges. Opt out per component with WidgetInput.manual. SceneView.debugWidgetInput overlays the pointer's hit node, UV, and distance for input debugging.
Added ScenePointer for programmatic input (a crosshair, a gamepad-driven cursor): point it along any ray or screen position, then press, release, and scroll. Occlusion filtering (what blocks the ray) and interaction filtering (which surfaces respond) are independent masks, and multiple pointers carry independent capture and hover state.
Added WidgetTexture (the low-level capture primitive behind WidgetComponent) and Camera.screenPointToRay (screen position to world ray, for picking and custom input).
Added UnlitMaterial.alphaMode (opaque or blend), routing unlit surfaces through the depth-sorted translucent pass.
Added Surface.lastSwapchainColorTexture, the previous frame's color texture, safe to sample from materials for one-frame feedback effects.
Fixed vertically flipped texturing on the cuboid and wedge primitives: their face UVs put v = 0 on the bottom edge, while the engine convention (and imported models) put v = 0 at the top of the image. Textures on these primitives render right side up now; scenes that compensated for the flip will see the change.