NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev
pub.dev, #1596 most downloaded on pub.dev
A 3D game engine for Flutter, built on Flutter GPU. Renders glTF models with PBR lighting, shadows, animation, physics, and audio, with a scene editor.
Latest stable
0.24.3
Last release 1 months ago
09 Oct 2026
Ships unpredictably
gaps range from 9 days to 13 months
Nearly every release is documented
notes for 25 of 25 stable releases
3 versions withdrawn
withdrawn after publishing
4 years old
40 releases · first in 2023
Drag across the ruler to compare, or tap a release to open it.
A frame that re-presents its previous image while the GPU catches up no longer uploads joint matrices or light data first. On Vulkan each upload waite
Scene.warmUp takes allShadingTiers (and SceneView takes warmUpAllShadingTiers), which also compiles the shader tier the scene is not using, so turning one of those features on or off later does not stall a frame.Camera.right, Camera.horizontalForward, and Camera.horizontalRight, plus Node.forward, Node.right, and Node.up, give the world-space basis for movement and aiming without deriving it by hand.Your coding agent can read these notes before it upgrades. Set up the MCP server →
Scene.dispose drops the render targets and history textures a scene keeps across frames, so they no longer wait on the scene object being collected. A
Scene.dispose drops the render targets and history textures a scene keeps across frames, so they no longer wait on the scene object being collected. A disposed scene throws a StateError on render.SceneView.declarative disposes the scene it owns when it unmounts.objectMotion works on the web. Its velocity shaders failed to link on WebGL2, so every frame threw.SceneView (a portal or picture-in-picture view) no longer freezes on its last image while the first one renders. Regressed in 0.24.0.shadowMaxDistance (at least shadowFadeRange), so distant shadows no longer switch off a strip at a time as the camera moves and the cached shadow tiles re-centre. Surfaces past the fade skip shadow sampling.On Apple platforms, a ShaderMaterial whose fragment shader reads a varying its vertex shader does not write at that location and type is skipped with
ShaderMaterial whose fragment shader reads a varying its vertex shader does not write at that location and type is skipped with a message naming the varying, instead of crashing the app on Flutter 3.47. Scene.preload also waits for the shader reflection the check reads..fmat shaders build about twice as fast in browsers on Windows, close to 0.23, where a new material could stall its first frame for tens of seconds. Regressed in 0.24.0.hooks: user_defines: flutter_scene: debug_views: true (plus flutter_scene_debug_views: true under the app's name if its hook builds materials or engine assets). Without it a view shows the geometry and identity channels and prints how to turn the rest on.buildMaterials and buildEngineAssets take debugViews.ShaderMaterial whose fragment shader reads a varying its vertex shader does not write at that location and type is skipped with a message naming the varying, instead of crashing the app on Flutter 3.47. Scene.preload also waits for the shader reflection the check reads..fmat shaders build about twice as fast in browsers on Windows, close to 0.23, where a new material could stall its first frame for tens of seconds. Regressed in 0.24.0.hooks: user_defines: flutter_scene: debug_views: true (plus flutter_scene_debug_views: true under the app's name if its hook builds materials or engine assets). Without it a view shows the geometry and identity channels and prints how to turn the rest on.buildMaterials and buildEngineAssets take debugViews.--dart-define=flutter_scene.webgpu=true plus flutter_scene_webgpu: true under hooks: user_defines: for flutter_scene and the app. WebGL2 stays the default.BREAKING: Lighting takes projectionScaleX/Y , projectionOffsetX/Y , and orthographic in place of tanHalfFovX/Y , which remain as deprecated getters.
BloomSettings.fireflySuppression, on by default), so a mirror glint of a small intense light no longer floods the frame or strobes, while bright regions bloom in full.BloomSettings.highlight (default 1000) softly compresses extreme pixels before they bloom, so ordinary highlights pass nearly unchanged but no pixel floods the frame. 0 turns it off.PointLight.radius and SpotLight.radius give a light a physical size, so glossy reflections widen to the emitter instead of peaking at a point, and the near-field falloff stops at its surface.discard, so mobile GPUs keep early depth testing and hidden-surface removal on for every opaque draw (frames 2.5 to 6x faster on a Mali-G57). Alpha-masked and LOD cross-fading draws cut out through a depth pre-draw instead; translucent cross-fades fade by opacity.PhysicalMaterial without a base color texture masks its shadows and depth by its vertex and factor alpha.Material.depthLayer (.fmat depth_layer:) orders surfaces that share a plane. A higher layer draws over a lower one at any distance, so signs, screens, and road paint laid on a surface stop flickering (z-fighting).EXT_clip_control) and rasterize with a near plane fitted to visible content each frame, so distant surfaces centimetres apart stay distinct. Scene.reversedDepth and Scene.fitNearPlane turn each off; projections and picking keep the authored planes.PerspectiveProjection and PerspectiveCamera accept an infinite far plane (.fscene infiniteFar).Scene.probeDepthConflicts names each pair of nodes that trades pixels as the camera moves, and DebugOverlay.depthConflicts marks them live.Scene.findCoplanarOverlaps lists faces that overlap in one plane, with the length that fixes a repeated piece; debug builds print it once the scene settles.SurfaceDebugChannel.depthGap shows the gap two surfaces need at each pixel to keep their order.Scene.coplanarTieBreak (experimental) gives unlayered exact overlaps a stable winner.ShaderMaterial vertex shaders that write clip depth themselves (a sky at z = w) need Scene.reversedDepth = false; ones that use camera_transform are unaffected.loadScene and the async .fsceneb loaders parse on a background isolate; readFscenebAsync is exported from fscene.dart.Texture2D.fromImage(opaque: true) wraps the image's GPU texture instead of reading it back, when no mip chain is needed.Scene.warmUp waits for the raster thread before drawing, so OpenGL ES pipeline compiles no longer stall the UI thread behind a swap.PhysicallyBasedMaterial extensions and ShadowCatcherMaterial, and the SMAA tables, load on first use instead of delaying every scene's first frame; Scene.preload loads them up front..fmat compiler..fmat samplers declared with hint: default_black or hint: default_transparent sample a black or transparent placeholder until a texture is set; both used to sample white.paint, and a pipeline that keeps failing (an OpenGL ES driver that cannot compile its shader) is dropped and reported once (#444).BloomSettings.scatter weights the wider mips instead, and the resolve magnifies bloom with a B-spline.CLAMP_TO_EDGE, MIRRORED_REPEAT) and NEAREST filters instead of always repeating.KHR_texture_basisu) transcode to BC or ETC2 blocks on devices that sample them, instead of decoding to rgba8.buildTextures(encoding: TextureEncoding.etc1s(quality: ...)) cooks textures to standard ETC1S KTX2 with a pure-Dart encoder, several times smaller than .fstex; encodings sets it per source.Node.highlightColor between a tick and the next draw no longer throws inside the selection outline pass; the outline draws white for that frame and takes the color on the next.Scene.warmUp(sliceBudget:) compiles pipelines a slice at a time and yields between slices, so a slow device keeps answering input; SceneView(warmUp: true) now warms up this way..fmat materials can define Light(), Ambient(), and Composite() hooks to shade each light with their own BRDF, adjust the image-based lighting inputs, and combine the lit lobes themselves; Light() also sees each light's table row and shadow slot..fmat materials can set environment_lighting: false to compile out the engine's environment lighting and supply their own indirect light in Composite()..fmat Vertex() hooks read vertex.model_transform, the object-to-world transform, so a vertex stage can build geometry in object space and place it itself..fmat alpha_to_coverage: true turns an opaque material's alpha into MSAA coverage for crisp, sort-free cutouts such as foliage cards (a dithered cutout on OpenGL ES and WebGL2), and cuts its depth prepass and shadows by the same alpha.SpotLight.shadowFieldOfView narrows a spot's shadow frustum inside its cone, spending the tile's texels on the core of a wide, soft-edged cone.PointLight.falloffExponent and SpotLight.falloffExponent accept 0, which turns off distance falloff and leaves only the range window; they used to clamp to 0.1.RenderPassContext.spotShadows (SpotShadowInfo).RenderTexture(linearColor: true) captures the view's linear HDR scene color with no post-processing or tone mapping, for mirrors and probes composited in HDR; MSAA still applies when the view asks for it.PlanarReflectionCamera is public, so an app can render its own mirror into a RenderTexture with the reflected camera and an oblique near plane at the mirror.Node.renderOrder sorts a node's draws ahead of everything else in their pass, pinning the order of overlapping translucent surfaces that depth sorting gets wrong.MeshPrimitive.drawSelector and InstancedMesh.drawSelector take a MeshDrawSelector that picks how many leading instances and which index range each color, depth, or shadow draw uses, for detail that depends on the pass or camera.InstancedMesh whose instances stop changing keeps its instance data in a device buffer, so its draws stop copying every instance each frame..fmat named a declared sampler without reading it (in a comment or code the compiler removes); every declared sampler now stays in the compiled shader.buildScenes and buildMaterials rerun when a source is added or removed in a subdirectory, not only at the top of the discovery root..fscene documents keep data this build does not read through a load and save, and a property with an unknown tag loads as an inert UnknownValue (exported from fscene.dart) instead of failing the document..fmat vertex stage that reads custom or per-instance attributes runs in depth and shadow passes too, so geometry it moves casts the shadow it draws..fmat effects_depth: true puts a translucent surface in the depth that depth of field and custom passes read, cut by its alpha, without writing depth in the color pass (fins, hair cards).Scene.debug.splitView shows a second surface debug view left of Scene.debug.split, so a wipe can run between two channels instead of against the lit image.Scene.debug.split, drawn only on the view side, and Scene.debug.splitOverlays draws overlays on the other side, so a wireframe can wipe in and out.SceneView.maxFrameRate caps rendering at an even cadence, every other refresh for 60 on a 120 Hz display.Geometry.uploadVertexStreams uploads vertex streams in a caller-defined format, and Geometry.setDepthOnlyVertex gives such a mesh a position-only shader for shadows and the depth prepass.MeshGeometry attributes left out at construction bind shared default streams instead of uploading per-mesh defaults..fmat materials can set directional_light: false to compile out the directional light..fmat materials drawing nothing on Impeller Vulkan. Their shader carried an unread radiance block that collided with the vertex stage's frame block in the pipeline layout, which some drivers reject; the block is now compiled out where nothing reads it.Material.displayReferred (settable on UnlitMaterial) marks a surface whose color is already final screen values, so it draws past the tone curve into its own layer and composites onto the resolved image with its colors unchanged. WidgetComponent turns it on for the material it owns, fixing captured widgets arriving dark and dark tones crushed (#382); pass displayReferred: false for a screen that should read as a lit object. The layer is still occluded by opaque geometry, but takes no exposure, grading, tone mapping, fog, bloom or depth of field, casts no shadow, and does not order against translucent geometry..fscene, and asset textures in the browser and builds their mip chains on the GPU, so large images no longer render in pieces and no longer stall the main thread.Texture2D.fromEncodedBytes uploads an encoded image. It, Texture2D.fromAsset, and the glTF loaders take a size cap that scales larger images down as they decode.GeometryBufferArena upload about half the bytes, and far faster under wasm.Geometry.uploadVertexData takes TypedData rather than ByteData for its vertices and indices, so an upload keeps the element type it was packed as. Subclasses overriding it must widen their parameters to match.OrthographicCamera and OrthographicProjection add parallel projection, sized by OrthographicSize (full world extents with height, width, contain, cover, or stretch fitting, or a fixed pixelsPerUnit) plus zoom, offset, and a near that may be negative.CameraProjection.getProjectionMatrixForViewport lets a projection size its volume from the view's logical size, which rendering and picking both resolve against.#include <view_projection.glsl> reconstructs view positions for any projection; PostCameraInfo carries its axis offset and orthographic flag in the formerly unused w slots..fscene cameras serialize orthographic projections, the editor draws their view volume, and OrbitCameraController dollies an orthographic camera by zoom.Lighting takes projectionScaleX/Y, projectionOffsetX/Y, and orthographic in place of tanHalfFovX/Y, which remain as deprecated getters.PerspectiveCamera.dart run flutter_scene:init lists a directory per platform in the app's pubspec so the app's own generated shaders ship only for their platform too; rerun it in an existing app.Scene.addTickListener runs a SceneTickListener at the start of every tick and before every fixed step, ahead of all components, for per-frame sampling such as input.FlyCameraController.setMoveInput drives movement from a gamepad, touch controls, or an input system, summing with the keys and keeping analog magnitude.releaseTransientRenderTargets() drops the render graph's pooled attachments (shadow atlas, scene color, depth, the post-process chain) and returns the bytes released; they reallocate on the next frame that needs them.releaseRenderTargetsOnMemoryPressure turns that off), and takeMemoryReport() reports them as a render targets category.Scene.debug.view shows a resolved material channel (base color, roughness, metallic, every physical field), a geometry attribute (normals, tangents, UV sets, vertex color, face orientation, UV checkers), an identity color per object or material, or a validation flag (NaN/Inf, albedo range, non-binary metallic, missing tangents, UV range) in place of the lit result, on every material including .fmat ones, at runtime in any build. Scene.debug.split compares a view against the lit image, DebugView carries a range, gain, and out-of-range policy, Node.debugView overrides or excludes a subtree, and Scene.debug.overlays adds a wireframe drawn through each mesh's own vertex path. DebugViewRegistry lists the views by id for tools; a .fmat shows any value through material.debug and the custom channel.GeometryBufferArena fills the first block with room instead of abandoning a block's tail once an upload does not fit, and its docs now say it never reclaims space.DebugDraw.flushInto rebuilds one updatable line geometry in place each frame (DebugDraw.createGeometry makes it) instead of allocating a geometry per flush; the Kit example uses it.Scene.renderStats reports every frame's draw, instance, vertex, culling, batching, and pipeline counters per view and per pass with CPU times, plus a bounded history; the render graph also emits a dart:developer timeline event per pass for DevTools.ShaderReflection parses any loaded shader bundle into per-shader, per-backend reflection (inputs, uniform block layouts, texture bindings, entrypoint) and the compiled source for every backend it holds, maps shader objects back to their names, and decodes packed uniform bytes through the layout.CapturedDraw, with node, material, shader pair, pipeline, counts, batch size, why an opaque run ended, and the uniform blocks bound for it) and every skipped item with its reason.RenderGraphCaptureResult.toJson and fromJson serialize a capture with PNG thumbnails and decoded uniforms, so a capture can be attached to a bug report and opened elsewhere..fmat compile failures expose parsed diagnostics (FmatCompileException.diagnostics) with line numbers, and shaderSourceWindow renders the marked source around one.DecalNode, an oriented projection volume that paints a .fmat material onto whatever opaque surfaces it intersects (scorch marks, splats), with no mesh work at the impact site.Scene.screenDistortion, expanding shockwave rings that warp the composed image with optional chromatic fringing..fmat materials accept blending: additive alongside opaque/alpha, and depth_write/depth_test configure the translucent depth state.#include <wireframe.glsl> plus MeshData.unweld barycentric attributes, for wireframe and scan-line overlays on any mesh.MaterialGroup pushes one parameter value to a heterogeneous set of materials, skipping names a member does not declare..fmat materials may declare engine_inputs; the screen accessors gain GetSceneWorldPosition, materials that read scene depth get it at full resolution, and scene_color_reach bounds a reader so disjoint readers share one scene-color capture.Scene.shadowCasterOverflowCount and Scene.isShadowCasterGranted report the lights whose authored shadow is not being drawn, since the shared shadow atlas caps shadow-casting spots and point lights (four each) and the lights past the cap previously went dark silently.Scene.globalIlluminationProbeGrid reports the probe lattice the irradiance field resolved this frame (origin, spacing, and probe counts as an IrradianceProbeGrid), so an editor or debug overlay can draw where the probes actually are instead of re-deriving a placement that depends on the volume mode, camera, and scene bounds.Node.shadowCastingMode selects how a node's meshes cast: on, off (excluded from every shadow map while still drawing), doubleSided (casts from every face, closing light leaks through single-sided geometry), or shadowsOnly (casts while staying out of the color image, for proxy and off-screen occluders). Replaces Node.castsShadows, which stays as a deprecated two-state view of it, and is carried by .fscene documents and the editor's node inspector.SpotLight.shadowCasterChannelMask and PointLight.shadowCasterChannelMask drop casters from one light's shadow map by light channel, matching DirectionalLight's, so a node can be lit by a light without casting into it.PointLight.castsShadow plus per-light resolution, near, bias, softness, and caster-face controls. Six 90-degree cube faces render into the shared shadow atlas (four quarter-resolution faces per tile, two tiles per light) and the lit shader picks the face by the dominant axis of the light-to-fragment vector, so point shadows cost no new samplers or shader variants. A limited number of point casters render per frame; the rest shade unshadowed.Scene.smaa (SmaaSettings) tunes SMAA's edge threshold, search steps, and corner rounding at runtime, previously compile-time constants..fscene stage effects now apply and serialize temporal anti-aliasing tuning and SMAA quality (the fields previously round-tripped through documents without reaching the scene).flutter_scene-idioms v14, flutter_scene-kit v7, flutter_scene-looks v5, flutter_scene-performance v3, flutter_scene-procedural v4, flutter_scene-verification-loop v4), including game input through flutter_scene_input. Run dart run flutter_scene:skills to update installed copies.Scene.antiAliasingMode from msaa to another mode on the OpenGL ES backend no longer renders without a depth test (far surfaces drew over near ones); pooled color targets now keep a separate texture per depth attachment setup.Scene.renderQuality (RenderQualitySettings) puts the automatic settings on a quality ladder: AntiAliasingMode.auto and the scene color capture budget follow the tier (web and Linux desktop start at medium, everything else at high), and adaptive lowers the render scale and then the tier from measured frame periods when frames overrun targetFrameRate, recovering when they keep it. Scene.effectiveRenderQualityTier and Scene.adaptiveRenderScale report what is in effect.Scene.sceneColorCaptureBatches caps how many scene color captures a frame opens for overlapping transmissive readers (1 makes them all share one snapshot), the biggest lever on tiled and low-end GPUs; null follows the quality tier.shaders/PRECISION.md), so GPUs that run half precision faster (Mali, Adreno, the web) shade the standard and physical materials at their fp16 rate. Metal is unaffected. A .fmat body inherits the default and should declare highp on positions or coordinates it computes itself; noise.glsl runs in highp regardless, since its parity with the Dart port is a float32 contract.Scene.maxGpuFramesInFlight paces the GPU: once that many frames of GPU work are still running, a screen view presents its previous image instead of encoding a new frame, so a GPU-bound scene no longer stalls the UI thread on the Vulkan and Metal backends, which queue work from the calling thread. The default of 1 keeps the UI thread free for about a tenth of GPU throughput; 2 keeps the throughput but only halves the stall. Scene.pacedFrameCount counts the frames it held, and Scene.repaintRequested notifies when the held frame can be painted, so a view that repaints only on demand still shows it (SceneView listens).ThirdPersonControllerComponent.rotatesToMovement keeps the node's authored rotation while still moving it, and yaw exposes the smoothed heading, now seeded from the node's rotation instead of snapping to zero on the first step.DebugDraw.colliders wireframes every physics collider in a node subtree, posed the way the simulation sees it, and DebugDraw.shape draws one Shape at a given transform. Triggers draw in their own color.SceneView measures onTick deltas with a wall clock instead of the ticker's frame-begin timestamps, whose deltas alternate between tiny and double-length values under GPU load and stagger any motion integrated against them. The new SceneView.clock injects a clock for tests and time-controlling drivers; the ambient package:clock clock (faked under flutter_test) is the default.Scene.punctualLightOverflowCount reports how many drawable items dropped punctual lights last frame because more lights reached them than the per-object budget shades.-split<N> suffix on a glTF node name splits its mesh into grid-cell child meshes at import (whole triangles binned by world-space centroid into N-unit cells, children named Ground_x0_z3), so a level-spanning mesh culls and receives punctual lights per cell; the split reapplies on every re-import.Scene.punctualLightClustering disables clustering for comparison.implements rather than extends these types: Geometry gained uploadVertexStreams and setDepthOnlyVertex, Material gained depthLayer and displayReferred, Camera gained projectToScreenUv, CameraProjection gained getProjectionMatrixForViewport, and ComponentCodec gained writeLiveProperty, all with default implementations, alongside several internal engine members. IrradianceFieldBakeStepper takes a required pointShadowFrame, and its renderView callback receives it.Scene.initializeStaticResources() completes with its error instead of normally, so a failed shader-bundle or material load now reaches the caller rather than only dart:developer log() (which web never showed). Awaiting it without a try/catch throws where it previously continued; wrap the call, or use a SceneView, which reports the failure and stays on its loadingBuilder. baseShaderLibrary names that cause too, rather than telling you to await the call that already failed.sceneSortDepth allocates nothing, and instance batch objects are pooled, cutting per-frame work that multiplies across shadow, depth-prepass, and reflection views.code_assets 2.x.SceneView's camera (or cameraBuilder) when no scene camera or AudioListener is set, instead of a listener stuck at the origin.assets/dfg.bin instead of being integrated at every cold start, taking Scene.initializeStaticResources() from 274ms to under 20ms on a Galaxy A16. The table is a constant, so the asset is bit-identical to the integration; an app that trims it still gets a correct table, built off the render isolate and with a message saying what it costs.pow three times per texel. A 2048-square color chain drops from 141ms to 55ms.EnvironmentMap.radianceComplete waits for the finished result.root, whose channels drove the import root instead, dropping the Z flip and leaving the joint still.EnvironmentMap.fromEquirectImageAsset and imageFromBytes(maxWidth:) no longer fail with "ImageDescriptor.width is not supported".FastNoiseLite, noiseCurl3, particle turbulence) now matches native exactly on web; 3D OpenSimplex2 previously returned huge values there, driving particles to NaN..fmat parameter saved into an .fscene document keeps its int type instead of becoming a double.Development funded by our sponsors, Primio (Silver).
.fscene, .fproject, and settings files.Development funded by our sponsors, Primio (Silver).
Build hooks no longer crash on a target OS package:code_assets cannot name, which is how a third-party embedder announces tvOS or visionOS.
package:code_assets cannot name, which is how a third-party embedder announces tvOS or visionOS.package:flutter_scene/kit.dart, high-level gameplay, camera boom, character controller, day/night cycle, water surface, audio, pooling, and debug visualization components..fscene version 5, matching glTF and the rest of the ecosystem. Version 4 documents swap index pairs on read and version 4 containers migrate at realization, so assets need no action, but hand-authored index buffers and custom Geometry subclasses wind the other way and need their triangles swapped.Scene.globalIllumination, a grid of octahedral irradiance probes fed by scattering the visible surfaces' shaded radiance, so bounce light persists for geometry the camera is not looking at and colored bleed reads correctly. Off by default.GlobalIlluminationSettings.visibility, per-direction depth moments and a Chebyshev bound so the field does not leak through walls.GlobalIlluminationSettings.emissiveGiBoost so a small bright emitter can light a room without brightening the direct image.Scene.bakeIrradianceField and IrradianceFieldBakeStepper.IrradianceVolumeComponent places the irradiance volume on a node, for authored placement instead of fitting the scene or following the camera.Scene.invalidateGlobalIllumination discards the accumulated field so it refills from scratch after a hard camera cut.texelFetch from a texture the probe atlas extends, so global illumination costs no additional fragment sampler.flutter_scene-kit agent skill, covering the gameplay, camera rig, character controller, day/night, water, audio, pooling, and debug components in kit.dart.flutter_scene-idioms skill (v4) with the reflection probes and lens flares the engine gained, and the traps that came with them.flutter_scene-performance skill (v2) with SMAA's cost next to FXAA and the per-frame reflection-probe recapture trap.flutter_scene-procedural skill (v2) with natural formation recipes (rock fractures, incised trails, pebble scatter, Gerstner waves, tree branching, and procedural island topographies).flutter_scene-looks skill (v4) with micro-surface and anti-waxiness tuning guidance.flutter_scene-verification-loop skill (v2) with empirical verification disciplines and blind-pairwise review rules.AntiAliasingMode.taa and Scene.temporalAntiAliasing, reprojecting history with camera subpixel jittering, motion vectors for unskinned and skinned geometry, and variance-guided history clamping.Material.specularAaThreshold configures the threshold.DirectionalShadowFilter.bilinearPcf continuous 2x2 bilinear percentage-closer filtering.CameraProjection.getProjectionMatrix adds an optional named jitter parameter for temporal subpixel sampling.sun_visibility.ExternalTexture, a TextureSource fed by a platform texture id (video, camera preview) with optional colorFilter, captured through the compositor on frames that sample it..fsceneb payload chunks compress with gzip, cutting file sizes by ~73% in exchange for higher load-time decompression CPU.globalPosition through render objects (Slider, text selection) work when the scene view is not at the window origin.PhysicallyBasedMaterial keeps a scalar ior, specular, and specularColor on the standard shader by folding them into its dielectric reflectance (the KHR_materials_ior / KHR_materials_specular formula the physical shader uses), so only specular textures and the layered features select the heavier physical variant.v_model_scale left the vertex output interface, cutting varying bandwidth on tiler GPUs); lit materials read it from FragInfo.model_scale through the unchanged GetModelScale() accessor, now carrying the node's scale rather than per-instance or per-joint scale, and a raw ShaderMaterial pair that needs it passes its own varying computed from the model transform.extensionsRequired and surfaces warnings through an onWarning callback on every entry point.bufferView.KHR_draco_mesh_compression decodes in pure Dart on every platform.EXT_meshopt_compression decodes in pure Dart; KHR_mesh_quantization is recognized alongside it.KHR_texture_basisu) load on both import paths, transcoded in pure Dart..gltf documents and percent-decodes resource URIs.MeshPrimitive.visible and MeshPrimitive.castsShadow toggle one primitive's color and shadow passes independently.MaterialParameters gains typed getters, hasParameter, isParameterAssigned, and parameter enumeration.channelMask on lights and Node.lightChannelMask restrict what a light illuminates; DirectionalLight.shadowCasterChannelMask filters shadow casters independently.DirectionalLight.firstCascadeFarBound pins the first cascade split; cascadeOverlap cross-fades cascade hand-offs.ShadowCatcherMaterial, an invisible ground showing only received shadows and ambient occlusion, live by default with a baked mode.weights channels, and blend on the CPU or a GPU morph texture; Node.morphWeights drives them.EnvironmentMap.fromKtx2Bytes loads a pre-baked radiance cubemap with SH-9 diffuse, skipping the load-time prefilter.EXT_lights_image_based imports as an ImageBasedLightComponent on the model root.parseDiffuseShSidecar/encodeDiffuseShSidecar, evaluateDiffuseSphericalHarmonics, and describeDiffuseSphericalHarmonics for verifying imported coefficients.PhysicallyBasedMaterial.lightmapTexture adds a baked lightmap that replaces the SH diffuse ambient..fmat instance_attributes declare typed per-instance data, set via InstancedMesh.setInstanceAttribute.ShaderMaterial declares the same per-instance data through ShaderInstanceAttribute, so a custom vertex shader reads the instance_<name> inputs a .fmat would have generated.PlanarReflectorComponent renders a mirrored scene capture that .fmat materials sample via the planar_reflection engine input.ShaderMaterial.sceneInputs declares the engine's per-frame scene textures, so a raw shader can refract and measure its own thickness like a .fmat material. Include <scene_inputs.glsl> for the samplers and their accessors; buildTargetShaderBundleJson puts flutter_scene's shaders/ on the include path so it resolves with no setup.ReflectionProbeComponent, capturing the scene into a local environment whose reflections track the probe's box.Scene.captureEnvironment renders the scene's lighting at a point into a new EnvironmentMap.AntiAliasingMode.smaa, cleaner edges than FXAA with far less texture blurring.BloomSettings.lensFlare, ghost chains and a halo with chromatic dispersion off the bloom pyramid.Four new agent skills alongside flutter_scene-idioms : flutter_scene-verification-loop (the run-settle-capture-correct visual loop and the blind-pairw
flutter_scene-idioms: flutter_scene-verification-loop (the run-settle-capture-correct visual loop and the blind-pairwise judgment rule), flutter_scene-looks (copy-paste EnvironmentSettings presets for a deliberate look), flutter_scene-procedural (terrain, noise, and instancing from code), and flutter_scene-performance (frame-budget measurement and a fixed remediation order). dart run flutter_scene:init and dart run flutter_scene:skills now install every bundled skill.Fixes the Settings dialog hanging the editor; all editor dialogs now open inside the main window ( #344 ).
OrbitCameraController, FlyCameraController, and FollowCameraController drive a camera node from drag, scroll, and keyboard input with frame-rate-independent smoothing and clamped pitch. The CameraControls widget wires Flutter input to a controller; controllers also expose intent methods (orbitBy, dollyBy, look, ...) for driving them from any source.Node.lookAt, Node.lookAtFrom, and the static Node.lookAtTransform orient a node's forward axis (local +Z) at a world-space target, aiming cameras, lights, and imported models without hand-building a view matrix.flutter_scene-idioms agent skill, correct-usage guidance for coding agents that corrects the wrong assumptions carried from other 3D engines. dart run flutter_scene:init offers to install it, asking first at a terminal and never installing unattended without --skills.dart run flutter_scene:skills to install, update, or --check the agent skill on its own, without touching the build hook or pubspec.Node.position , Node.rotation , and Node.scale read and write the local transform one component at a time, and editing a returned copy in place throws
Node.position, Node.rotation, and Node.scale read and write the local transform one component at a time, and editing a returned copy in place throws in debug builds rather than silently doing nothing.Node.mutateLocalTransform edits the local matrix in place through a callback and marks the node dirty, the correct way to reach for the raw matrix.up parallel to it, and a field of view passed in degrees.SkinnedGeometry.uploadVertexData and setCustomAttribute now throw on a buffer whose length does not match the vertex count, instead of rendering garbage.Mesh whose primitive geometry is replaced now recomputes its bounds on its own, rather than over-culling until markLocalBoundsDirty is called.AnimationClip that binds zero of its channels now asserts in debug builds, naming the wanted nodes, since it otherwise plays while nothing moves.flutter run rendering nothing, from two hook invocations writing the same shader bundle filenames with different backend trims.Scene.initializeStaticResources() reporting ready when the shader bundle loaded but held nothing this engine can read.dart run flutter_scene:init then flutter run failing on a new app with "Flutter failed to list directory".Node.clone() sharing the original's transform matrix.ParticleSystem.reset() not restarting its random stream.Node.localTransform in place without markTransformDirty() now throws in debug builds instead of silently doing nothing.SceneViewsBuilder is now exported.Environment, loadModel, the master channel requirement), plus a readme scene that needs no asset files and a list of the built-in geometry.The first release of the Flutter Scene Editor, a desktop app for authoring, inspecting, and iterating on scenes. It bundles everything it needs, including the offline shader toolchain, so there is nothing to install alongside it.
.fmat material editing that recompiles and hot-swaps as you edit.@SceneComponent types from your project's source appear in the inspector automatically.flutter_scene 0.22.0. The editor version tracks the package version it edits projects for.flutter_scene_editor-0.22.0-macos-arm64.dmg, open it, and drag the app to Applications.Documentation only. The readme spells out how to turn Flutter GPU on for each platform, shows the build hook and the pubspec entry dart run flutter_sc
dart run flutter_scene:init writes, recommends converting assets ahead of time over importing glTF at runtime, and links the guides at fscene.dev.Breaking change, legacyOnly and dataAssetsIfAvailable are removed in favor of generatedTree, now the default in SceneAssetMode, TextureAssetMode, Mate…
3.47.0-1.0.pre.N sorts below it and will not resolve.flutter_scene_generated/ at the app root and loaded by source path, the same way on every Flutter channel. dart run flutter_scene:init installs the hook, creates the directory with a .gitignore for its outputs, and adds the one pubspec assets entry it needs.flutter pub add flutter_scene is the whole setup. flutter_scene's own build hook compiles the engine's shaders for the app being built, on every channel, so an app with no hook of its own renders a runtime-imported .glb everywhere including web.buildEngineAssets is an optional build-hook call that puts the engine's shaders in the app's own generated tree instead of flutter_scene's.legacyOnly and dataAssetsIfAvailable are removed in favor of generatedTree, now the default in SceneAssetMode, TextureAssetMode, MaterialAssetMode, and TargetShaderBundleAssetMode. A hook still passing a removed mode fails the build naming its replacement, since outputs moved out of build/ into the generated tree and an app loading by explicit asset key reads its new keys from the tree's manifest.json. Re-run dart run flutter_scene:init to migrate a hook and add the pubspec entry. The Dart data assets modes remain as explicit opt-ins and prune the tree entries they replace..fmat reference written against the package root binding to a path beside its scene document, which left the material unresolved at load and the geometry on an opaque fallback. A reference only rebases onto the document when a file is actually there, matching how the source-root loader reads the same scene.resolveShaderBundleKey resolves a shader bundle built by buildTargetShaderBundleJson (or flutter_gpu_shaders) by name, for loadShaderLibraryAsync.flutter_scene_strict_hashing: true under hooks: user_defines: in the app pubspec to content-hash everything.buildScenes and buildTextures no longer take outputDirectory. Outputs go to the app's generated tree, so a hook passing it fails to compile; drop the argument.FmatMaterialBundleIndex.fromJson requires assetKey. The bundle and its sidecar resolve from the index's own key, so a direct caller passes the key it parsed.Node.extractMeshData flattens a subtree's geometry into one MeshData with the descendant transforms baked in, and MeshData.toTriMeshShape/toConvexHullShape turn that into a collider, so an imported model no longer needs a hand-written walk to collide.MeshData.transformed places a snapshot by a matrix, carrying normals by the inverse transpose and, through a mirror, flipping both tangent handedness and triangle winding.ShaderMaterial shaders that sample the environment, they declare prefiltered_radiance as RadianceSampler and supply a radianceCubeFragmentShader variant built with FLUTTER_SCENE_RADIANCE_CUBE. .fmat materials are unaffected.PreprocessedMaterial takes radianceCubeFragmentShader for code that builds one directly rather than through a loader.EnvironmentMap.prefilteredRadianceTexture and EnvironmentMap.prefilteredRadianceCube are gone. The single prefiltered-radiance sampler replaces the layout pair, so code reading either field reads the one texture the map now carries.RenderItem.windingFlipped derives from its geometry instead of being assignable, so a mirrored transform reverses winding without callers tracking it.ComponentCodec.serialize is abstract, ComponentPropertyDef and ComponentPropertyKind moved to the scene schema model (constraints replace min/max/read), and flat codecs extend DeclarativeComponentCodec, deriving schema, realization, and delta serialization from one ComponentField list..fscene version 3. Component properties delta-serialize (values equal to their schema default are omitted) and audio attenuation settings nest; version 2 documents read unchanged.package:flutter_scene/annotations.dart, @SceneComponent and typed property annotations that lower to schema constraints for generated codecs.ForeignComponent placeholders and round-trip untouched.registerPhysicsBackend is public, so physics backend packages can register simulation factories the way audio backends do.FsceneComponentRegistry.unregister removes a registered codec; documents carrying the type realize it as a lossless unknown-type placeholder.nodeRefOf and resourceRefOf recover document references from live nodes and realized resources, so custom codecs (generated ones included) round-trip them.FLUTTER_SCENE_SOURCE_ROOT read scene sources straight from the project, and ext.flutter_scene.reloadScene patches loaded scenes in place.ComponentSchema.gizmo, the GizmoSpec primitive model, the @SceneGizmo annotation), and the builtin lights, camera, colliders, audio, environment volumes, and particle emitters declare them.Scene.captureRenderGraph records one frame's render graph (passes, CPU timings, data flow, snapshot copies of written targets) behind the Scene.debugAllowRenderGraphCapture opt-in, and RenderPassContext.debugBlackboardTexture exposes raw pipeline textures to debug overlays.DirectionalLight.contactShadows, grounding small contacts that shadow-map resolution and bias miss.AmbientOcclusionSettings.indirectLight, crediting one bounce of scene radiance to newly visible sectors of the occlusion bitmask.RectAreaLight and RectAreaLightComponent, shaded with linearly transformed cosines so panel highlights stretch and fall off physically.ColorGradingSettings.lut, loading Adobe .cube tables with ColorLut.fromCubeAsset and blending with lutBlend..cube reference and blend) in .fscene documents, and ColorLut.sourceAsset reports where a table was loaded from.DirectionalShadowFilter.pcss, sharpening shadows at contact and widening them with caster distance scaled by DirectionalLight.angularRadius.depth_write: true, transmissive PhysicallyBasedMaterial) instead of the backdrop seen through them.AmbientOcclusionSettings.method, integrating horizon-slice visibility with sliceCount/stepsPerSlice controls and an optional constant-thickness visibilityBitmask mode.AmbientOcclusionSettings.multiBounce keeps albedo-tinted bounce light in occluded creases instead of darkening them to gray.AmbientOcclusionSettings.bentNormals steers indirect diffuse along the average unoccluded direction and enables SpecularAmbientOcclusionMode.bentCone.AmbientOcclusionSettings.intensity defaults to 1.0 and both methods are calibrated there; the obscurance estimator folds its former 2x, so halve any explicitly set obscurance intensity to keep its look.0.15, chromatic aberration 0.2, and auto-exposure clamps of -4 to +4 EV..fscene version 2 uses one native coordinate system and offline glTF import bakes source coordinates into it.Handedness, UpAxis, StageMetadata.unitsPerMeter, NodeSpec.excludeFromWindingParity, SkyEnvironmentSpec.castShadows, and the directional-light component schema's direction property.payloadSource.takeMemoryReport() reports what the engine's shared caches are pinning, releaseTexture/releaseScene give a claim back, and clearTextureCache/clearSceneTemplateCache drop everything.ResourceGroup.track scopes a load to the group's lifetime, so dispose() releases the claims it took. Previously dispose() only released the progress notifier despite the name.ResourceGroup throwing when it was disposed while a tracked load was still in flight, which is what tearing down a level mid-load does.loadScene keeping a scene template claim when it threw after the template loaded, so a caller that got no Node no longer has to issue a compensating releaseScene.PhysicallyBasedMaterial and glTF import support every ratified KHR_materials_* extension with scene-native property names.PhysicallyBasedMaterial property remains synchronous.KHR_texture_transform applies independently to every built-in and advanced material texture.textureInfo.texCoord in both glTF import paths.ShaderMaterial owns the vertex stage too. Pass a vertexShader (per MeshVariant, so skinned and shadow passes can differ) and set uniforms and textures on either stage with ShaderStage, so a hand-written shader pair needs no subclassing.setVertexLayout, and VertexAttributeDescriptor/VertexBufferDescriptor/VertexLayoutDescriptor are public.ShaderMaterial that supplies a vertex shader for some mesh kinds but not others warns in debug builds, naming the missing variant, instead of failing opaquely at pipeline creation.IndexType, VertexFormat, and VertexStepMode are exported, so 32-bit indices and caller-declared layouts no longer need lib/src imports.buildMaterials registers generated outputs as DataAssets when available by default.Node.castsShadows for excluding individual meshes from shadow passes.GeometryBufferArena and GeometryBuilder.build({bufferArena, retainCpuData}) for lower-overhead immutable mesh batches.InstancedMesh.addInstance(color:) and setInstanceColor.instance_color and use an 80-byte instance stride instead of 64 bytes.InstancedMesh.updateInstanceTransforms for allocation-light bulk motion and InstancedMesh.cullInstances for opt-in per-instance culling.InstancedMesh.sortTransparentInstances to skip unnecessary particle sorting.RenderView.cullingPlanes for application-defined frustum planes and Scene.warmUp(includeOffscreen:) for full-scene preparation.SunLight.cacheStaticShadows and DirectionalLight.cacheStaticShadows for continuously changing shadow lights.SunLight.shadowFilter and DirectionalShadowFilter.fixedPcf for stable lower-ALU shadow filtering..fscene layouts upgrade when loaded..fsceneb textures uploading without mipmaps, so a cooked scene is mipmapped whether or not compressTextures is set..fsceneb and .fstex textures sampling without anisotropic filtering, which blurred them at grazing angles.buildScenes warns when a texture is not block aligned and falls back to uncompressed, instead of dropping the compressed form silently.buildScenes and buildTextures take alignForCompression to resample a misaligned source up to the next multiple of 4 rather than failing or storing it uncompressed..fstex through buildTextures, loaded by source path with loadTexture (shipped in 0.20.0, missing from its notes).RangeError when an updatable mesh rebuilds at a smaller vertex count.2.0, and its former contrast role is power.min instead of multiplication.ToneMappingMode.agx with configurable Scene.agxWhite and Scene.agxContrast, persisted by environment resources.Material.depthBias, a world-space camera offset for coplanar surface details.Geometry.bind overrides must add the named parameter double depthBias = 0.0.EnvironmentSettings preserves every ambient-occlusion control and can apply only its environment look with applyLookTo.EnvironmentMap.constantDiffuse and declarative ConstantEnvironment ambient lighting.ParticleSystem.prewarm is now readable after construction.The .fscene document core (document model, stable ids, JSON/binary serialization, prefab composition, diffing) moved to the new pure-Dart scene packag
.fscene document core (document model, stable ids, JSON/binary serialization, prefab composition, diffing) moved to the new pure-Dart scene package; flutter_scene re-exports it, so existing imports are unchanged.SceneView.declarative, SceneNode, SceneMesh, and SceneModel describe scenes in build(), with bridges to and from the imperative API, which is unchanged.SceneModel.animations (SceneAnimationSpec), plus cached model templates so equal sources load once and share GPU resources.KHR_materials_variants support in both import paths via MaterialsVariantsComponent, declaratively via SceneModel.variant, with a new Configurator example.Scene.autoExposure, metered entirely on the GPU.Material.name.PhysicsSimulation contract from the scene package and no longer depend on Flutter, so the same simulations run under plain dart run.PhysicsWorld(RapierWorld()), plus concrete RigidBody, Collider, the joint components, and KinematicCharacterController; the backend-specific component classes are gone.RigidBody.handle, Collider.handles, and Joint.handle are public, so downcasting PhysicsWorld.simulation to a backend reaches capabilities beyond the shared contract, and the components subclass for typed backend components.package:flutter_scene/physics.dart (or package:scene/physics.dart for the pure contract); the core package:flutter_scene/scene.dart no longer carries physics types.BasicSimulation (queries and triggers, pure Dart) replaces BasicPhysicsWorld/BasicCollider/BasicKinematicBody.RigidBody now attach as static geometry instead of throwing.AudioEngine (implemented by flutter_scene_soloud and flutter_scene_fmod), with AudioListener, AudioSource/ClipAudioSource, AudioBus, and distance attenuation. Import package:flutter_scene/audio.dart; it is not in the core barrel.ParticleEmitterComponent (camera-facing billboards), MeshParticleEmitterComponent (instanced 3D debris), and TrailComponent (ribbon trails), all driven by a ParticleSystem built from emitter shapes, spawners, over-life distributions, and a module stack (acceleration, drag, size/color-over-life, rotation, flipbook, curl-noise turbulence), with new Particles and Explosion examples.Steady-state frame allocations cut sharply. Every fullscreen pass (bloom, ambient occlusion, reflections, god rays, depth of field, resolve, FXAA, the
FrameInfo, the lit FragInfo, the single-draw instance transform) reuse shared scratch buffers instead of allocating. At high draw counts this removes hundreds of megabytes per second of garbage and the GC pauses that came with it.MeshGeometry.fromArrays construction for streamed meshes. Supplied attributes now bulk-copy instead of walking every vertex, an already-typed index list (Uint16List/Uint32List) uploads without the width scan and repack, and a new optional bounds parameter accepts a caller-computed culling AABB (skipping the construction-time position scan), so an app that assembles vertex data on a worker isolate can build large geometry on the UI thread with nothing but memcpys and the GPU upload.scene.depthOfField. A thin-lens camera model drives the blur (fStop, focalLength derived from the camera FOV or set explicitly, sensorHeight, focusDistance, plus an artistic blurScale), sharing the physical-camera vocabulary of Scene.physicalCameraExposure. The bokeh aperture is shaped by bladeCount/bladeRotation/bladeCurvature, baked into the gather kernel on the CPU so shape costs nothing per frame. Renders as half-resolution fragment passes (CoC downsample, near-field CoC dilation so foreground blur crosses silhouettes, a Vogel-disc gather with occlusion weighting, an optional noise postfilter, and a full-resolution composite) on the linear HDR scene color before bloom, on every backend including web. Three quality tiers via DepthOfFieldQuality. Requires a perspective camera and forces the depth prepass while enabled.shadowStatic promises its meshes will not move or change while mounted, letting the engine render them into persistent per-cascade shadow tiles that are reused across frames; each frame then replays the cached tiles and draws only the dynamic casters on top. Tiles are fit with slack so the camera can move and turn without re-rendering, re-fit amortized (nearest cascade first) when static content changes, and rebuilt outright when the light or shadow parameters change. Large static worlds drop from re-encoding every caster into every cascade every frame to near-zero steady-state shadow cost; scenes with no shadowStatic nodes render exactly as before.AlphaMode.mask) are now alpha-tested in the depth-writing passes, not just the color pass. The shadow map and the camera depth prepass draw them through masked fragment variants that discard below the material's cutoff, so cutout surfaces such as foliage cast shadows, occlude ambient light, block god rays, and receive screen-space effects only where they are actually opaque. Masked shadow casters also keep the material's own face culling (a double-sided cutout casts from both sides) instead of the light's caster-face mode. Fully opaque and translucent materials render exactly as before..fmat declaring engine_inputs: [scene_color, scene_depth] samples an opaque-phase color snapshot (the scene pass splits in two around the translucent phase) and the prepass linear depth, enabling refraction, depth-fade absorption, shoreline foam, and in-material reflection marches on translucent surfaces such as water. The accessors are emitted only into materials that declare them, so scenes that use none of this pay nothing. MaterialInputs also gains a specular scale, and the per-frame uniforms now carry the camera's half-fov tangents so materials can project between world and screen space. Documented in MATERIALS.md..fmat skies declaring requires: [environment] now sample through a generated SampleEnvironment(direction, roughness) helper that binds every radiance layout correctly (the roughness-mip cube layout previously sampled black), and ShaderSkySource.sampledEnvironment pins the environment such a sky samples, so a sky that drives scene lighting through SkyEnvironment can reflect a fixed map instead of its own bake.sh_coefficients sampler (a 9x2 composite row per environment during a cross-fade), dropping the fragment sampler count from 16 to 15. Skinned draws add a vertex-stage joints texture on top of the fragment samplers, and 16 + 1 overflowed the texture-unit validation on GLES drivers reporting the minimum 16 units (ANGLE on D3D11), crashing skinned meshes on Windows. The engine-side validation fix is upstream; this keeps skinned rendering working on stable drivers today and buys back sampler headroom everywhere.Node.meshNodes iterates the drawable nodes in a subtree, Node.combinedWorldBounds gives the subtree's world-space AABB (the bound the renderer culls against), and PerspectiveCamera.framing(bounds) places a camera to fit that AABB in the view. Together they turn "load a model, find its meshes, frame the camera on it" into a few lines instead of a hand-rolled vertex loop..ply or .splat capture with GaussianSplats.fromAsset/fromBytes, attach a SplatComponent to a node, and the set composites with the forward-rendered scene, depth tested against opaque geometry and blended premultiplied. A set draws as one instanced batch of screen-space Gaussian footprints with per-splat covariance, color, opacity, and spherical harmonics fetched from vertex-stage data textures; a background worker keeps the splats depth sorted, and sets of at most 4096 splats sort synchronously in frame. SplatComponent exposes opacity, footprint scale, tint, SH degree, antialiasing, and crop boxes, with SplatData and the SplatColorSpace, SplatCropMode, and SplatFormat enums rounding out a new "Gaussian splatting" doc category. The example app gains a Gaussian Splats page with two real captures.SemanticsComponent to a node publishes it into the enclosing SceneView's semantics tree with a label, value, flags, and actions (tap, increase/decrease, or a full SemanticsProperties), with its focus rectangle projected from the node's bounds through the view's camera each frame and traversal order controlled by sortOrder. Culled or invisible nodes leave the tree, and an opt-in occlusionHiding also removes nodes that scene geometry blocks from the camera. WidgetComponent surfaces now expose their hosted subtree's real semantics too, positioned on the projected surface, so screen readers traverse and activate in-scene widget panels like ordinary widgets. All of this is skipped entirely while no assistive technology is active. Multi-view scenes project semantics through the primary view (the first view rendering to the screen).WidgetComponent gained occlusionHiding (opt-in): while scene geometry occludes the surface from the camera, its hosted subtree's semantics leave the tree, matching how its pointer input is already blocked.Camera.worldToScreen, the forward counterpart of Camera.screenPointToRay.Scene.initializeStaticResources call.PointLightComponent and SpotLightComponent attach lights to nodes (taking position, and for spots aim, from the node transform), with a range-windowed inverse-square falloff and an inner/outer cone for spots, and more than one directional light now shades as well. A scene may hold an unlimited number of lights; each frame the lights pack into a parameters texture and are culled per object through the scene BVH, so a fragment only shades the lights that reach its object. Spot lights cast perspective shadow maps through the shared shadow atlas, softened with a rotated PCF kernel and defaulting to a normal-offset bias. The runtime glTF importer reads KHR_lights_punctual, and .fscene gains pointLight and spotLight component codecs, so authored lights round-trip. A Lights example shows a grid of many culled point lights and an adjustable spot shadow.Geometry.extractMeshData() (with Geometry.isReadable) copies a geometry's retained vertex and index data out as MeshData, an isolate-transferable structure-of-arrays snapshot, and MeshData gains pure derivation ops that compose on background isolates, unweld (flat-shaded triangle soup with optional canned per-triangle attributes), extractEdges (unique edges with an optional crease-angle filter), merge, and a triangles iterator, feeding geometry back in through MeshGeometry.fromMeshData or applyMeshData. LineSegmentsGeometry renders bulk disconnected segments (a wireframe from extractEdges, debug lines) as thick camera-facing ribbons with world-space width in one instanced draw, shaded by any material's fragment.package:flutter_gpu's HostBuffer. Emplacements stage CPU-side and upload in a single write per block just before each command buffer submission; a block is never written again while in-flight frames may read it, and pooled memory grows with actual GPU queue depth and shrinks back afterward. This removes a redundant 4x internal buffer ring, fixes whole-frame aborts when a frame emplaces more than ~1MB of transients (a HostBuffer block-boundary bug), and collapses per-draw GPU buffer writes into a handful of block uploads per frame. On the WebGL2 backend, where GL commands execute during pass encoding (so a bound buffer can never be written again without the browser ghosting it), the same arena interface is backed by per-emplacement pooled buffers with identical completion-gated recycling and shrink behavior.bind surfaces take a TransientWriter (newly exported) where they previously took a gpu.HostBuffer, and RenderPassContext.transientsBuffer changes type accordingly. Call sites that only called emplace need no changes beyond the parameter type.HostBuffer is a faithful port of flutter_gpu's block bump allocator again (with a corrected length-aware block-rollover bounds check), keeping the shim a drop-in flutter_gpu replacement for consumers that use it directly; the engine itself no longer allocates through HostBuffer on any backend.GL_INVALID_OPERATION (Impeller tolerates the same situation). The shim pre-binds a shared zero-filled buffer to every active block and explicit binds override it, so unbound blocks read zeros instead of erroring. This fixes unlit .fmat materials rendering nothing on the web.culling: none) materials. The depth prepass they read culled every material back-face regardless of its own mode, so a double-sided surface's camera-facing back faces were missing from the depth and the effects shaded the farther surface behind them. The prepass now culls each material with its own mode, matching the color pass..fmat compiler no longer lets a declared resource the author's code never reads strip out of the generated shaders. Reflection still listed stripped resources and the runtime binds every declared one, so the strips surfaced as cryptic shader-bundle build errors or native crashes at draw time. Every case now keeps the resource genuinely live at zero cost, a leading mat4 or int material parameter, a Vertex() hook that fully replaces world_position (the instance transform attributes), a Vertex() hook that reads no parameter (the vertex MaterialParams block), a declared custom attribute Vertex() never reads, and a declared sampler the fragment never samples.package:flutter_scene/noise.dart adds FastNoiseLite (OpenSimplex2/2S, Perlin, Value, and Cellular with fBm/ridged/ping-pong fractals, domain warp, and a noiseCurl3 advection field), plus bakeNoisePixels/bakeNoiseTexture to bake a configuration into a texture. Any .fmat fragment, vertex, or sky block can #include <noise.glsl> for the same functions in a shader. The two halves are kept in lockstep so a field sampled on the CPU and evaluated in a shader agree: the integer hash layer (noiseHash2/NoiseHash2) is bit-exact on every backend for decisions that must not disagree, and the float functions match within a small tolerance enforced by a per-backend parity test. The GLSL side is correct on every backend including the web; the Dart side is currently native-only (its 32-bit integer hash overflows on the web, where Dart int is a JS double), so on the web use the GLSL noise or a baked texture. A web-safe Dart multiply is a planned follow-up.AmbientOcclusionSettings.depthMipChain (off by default) renders the occlusion depth prepass at full resolution and samples it through a downsampled mip chain, a level per sample distance. It keeps depth accurate where the projection compresses a large range into few pixels (grazing surfaces, vertex-displaced worlds), so near geometry's occlusion is not contaminated by the far surface behind it, and keeps large radii cache-friendly. The cost is a full-resolution prepass plus the chain build, so it is best reserved for higher-end targets.scene.fog (a Fog, off by default) fades geometry toward a fog color with distance, applied per-fragment in linear HDR before tone mapping so it is exposed and tone-mapped along with the scene. It supports linear, exponential, and exponential-squared falloff (FogMode), a maximum opacity, a cutoff distance, an exponential height term that thins fog with altitude, and an in-scattering glow toward the directional light. Its skyColorInfluence blends the fog color toward the environment sampled in the view direction, so distant geometry dissolves into the sky and horizon instead of a flat wall.CustomRenderPass added through Scene.addRenderPass renders at a chosen RenderStage with a RenderPassContext (targets, camera, transients), and object-filtered draws through NodeFilter let a pass re-render a chosen subset of the scene. Built on it, Node.highlightColor plus Scene.highlightStyle (HighlightStyle) draw per-node selection outlines (a mask pass and an outline post-process), which is what the scene editor uses for viewport selection.CustomRenderPass declares the buffers it needs through a RenderInput set (depth, normals, shadowMap); the engine produces them that frame and exposes them on RenderPassContext (sceneDepthLinear, shadowMap, shadowInfo, cameraInfo), so a full-screen pass can reconstruct world positions and sample the shadow map. This turns the custom-pass API into a general depth- and shadow-aware post-process system.scene.godRays (a GodRaysSettings, off by default) draws directional light shafts by marching the view ray against the cascaded shadow map and adding single-scattering to the HDR scene color, with controls for intensity, density, Henyey-Greenstein anisotropy, step count, maximum distance, jitter, and a color. It requires a shadow-casting directional light and a perspective camera.ResourceGroup tracks a set of in-flight loads and reports aggregate progress; SceneView gains loading, loadingBuilder, and revealMinDuration, holding the scene off-screen behind a loading widget until the engine's static resources and the tracked loads settle, then revealing the assembled scene in one frame. Scene.warmUp (and the SceneView.warmUp flag) compiles the scene's render pipelines and uploads its GPU resources ahead of the first visible frame by encoding one tiny offscreen frame, so the first frame does not stall on shader compilation. The runtime glTF/GLB importer now packs mesh geometry on a background isolate, so loading a large model no longer stalls the UI thread, and Scene.isReadyToRender exposes the shared static-resource state. All of it is opt-in; a view with no loading arguments renders as before.WidgetTexture, WidgetComponent) now stay on the GPU. Each capture wraps the rasterized image's backing texture directly (Texture.fromImage) instead of reading the pixels back and re-uploading them, removing the per-capture CPU round trip. Backends where the image is not texture-backed (the web backend, software rendering) keep the readback path automatically. The texture object published by WidgetTextureController is now replaced across captures on the wrapped path, so WidgetComponent's bind callback re-fires per capture; listeners that re-bind on change (the documented contract) are unaffected..fmat materials gain a vertex stage. A surface material may include a vertex { void Vertex(inout VertexInputs vertex) } block that displaces geometry, perturbs normals, and feeds data to the fragment, and the engine runs that one hook across every mesh type and pass (static, skinned, and the position-only depth/shadow variants), so a material never branches on skinned vs unskinned. A declarative varyings list forwards interpolants from Vertex() to Surface(), an attributes list declares named per-vertex inputs supplied through Geometry.setCustomAttribute, and MaterialParams are shared with the vertex stage. The stage applies consistently in the color, shadow-map, depth-prepass, and object-pick passes, so displaced geometry casts a matching shadow and picks on its displaced silhouette. Documented in MATERIALS.md ("The vertex block").Scene.initializeStaticResources() finishes loading the base shader bundle. Each resolves its shader from the base library lazily on first render (which the engine already defers until resources are ready) and caches it, so SceneView handles the warm-up with no await or FutureBuilder in app code. The built-in gradient and physical sky sources work the same way. To show placeholder content during warm-up, await Scene.initializeStaticResources() yourself. Custom ShaderMaterial and ShaderSkySource shaders are unaffected (you still supply a loaded shader). Material and Geometry gain setFragmentShaderName and setVertexShaderName for custom subclasses that pull from the base library, and ShaderSkySource gains a fragmentShaderName constructor argument.Scene.camera is the camera a SceneView uses when it is given no camera, cameraBuilder, or viewsBuilder. It resolves to an explicit override (assign any Camera), else the first CameraComponent mounted in the scene (auto-promotion), else null. CameraComponent gains makeActive (select it as the primary, deferred until mount if needed) and active. When nothing resolves a camera, SceneView now renders through a default camera instead of asserting, so a bare SceneView(scene) always renders. The SceneView constraint relaxes from exactly one to at most one of camera, cameraBuilder, or viewsBuilder.BillboardGeometry draws any number of camera-facing quads in a single instanced call (spherical, axis-locked, or velocity-stretched BillboardFacing, with flipbook atlas support), SpriteMaterial shades them with alpha or additive compositing in one translucent pass (SpriteBlendMode), and Sprite wraps a single billboard. The example app's Sprites and Particles pages build on them, the latter through a CPU-simulated particle system that is not yet part of the public barrel. The selection-mask, depth-prepass, and shadow passes now honor a geometry that supplies its own per-instance buffer and a geometry's double-sidedness.shadowAmbientStrength lets the cast shadow also darken the image-based ambient, which matters when a sky-baked environment already contains the sun and a shadow otherwise reads as a no-op on ambient light. shadowCasterFaces selects which faces render into the shadow map (front as before, second-depth back to remove self-shadow acne on watertight geometry, or both). And each cascade's light-space box now extends far toward the sun at no shadow-map resolution cost, so at low sun angles the long shadows of occluders outside the old box no longer drop out as lit bands.VertexLayoutDescriptor (attributes by name, format, slot, and offset, with per-buffer stride and step mode) that lowers to the GPU layout, Geometry.instancedVertexLayout changes to that type, and the render-pipeline cache keys on the layout so two layouts sharing a shader no longer collide. Each unskinned attribute (position, normal, texcoord, color) now lives in its own tightly packed stream end to end; the depth, shadow, and mask passes fetch only the 12-byte position stream, updatable geometry rewrites only the dirty stream (and the update* methods take an optional dirty vertex range), and the per-geometry kInterleavedVertexBytes constants are gone. The .fscene format stores unskinned vertices de-interleaved (a new unskinned_soa payload layout); old interleaved .fsceneb files still load, and skinned geometry stays interleaved.collisionShape bridge for the physics backends (compound shapes preserve the torus and ring holes). MeshData snapshots are isolate-transferable so meshing can run off the render isolate and upload via MeshGeometry.fromMeshData. A Shapes example drops the primitives into a physics playground.LodComponent draws one of several LodLevel variants chosen per view from the object's projected on-screen size (field-of-view aware and resolution independent), with a per-instance bias, a hysteresis dead-band, and a cull floor; selection runs in the encoder next to frustum culling. An optional dithered cross-fade blends adjacent levels across a screen-size band so the switch does not pop, honored by the built-in lit and unlit materials. A Geometry LOD example shows a field of icospheres switching detail with distance.EnvironmentMap.radianceCubeSize selecting the face size and the web backend gaining cube-texture support to match. Each environment carries its own layout, detected from its texture, so environments built with the earlier equirect layouts keep loading and binding correctly. EnvironmentMap.fromEquirectHdr builds an environment from linear HDR equirect pixels, so radiance above 1.0 (bright skies, the sun) survives the prefilter and lights the scene at its true intensity. The prefilter also pre-averages bright sources through a mipped source (no more firefly blocks in the rough bands) and no longer shows cube-face seams.EnvironmentSettings captures a scene's look (environment, skybox, exposure, tone mapping) as an interpolable snapshot, Scene.baseEnvironment holds the global look, and EnvironmentVolumes (box or sphere bounds, or attached to nodes via EnvironmentVolumeComponent) blend over it by camera position with per-volume priority, weight, and blend distance. The lit shaders cross-fade between two full environments while a blend is in flight, so lighting, reflections, and the skybox all transition smoothly instead of popping. Scene.environmentSettings applies a snapshot directly, and blendEnvironmentVolumes exposes the resolver.SunLight to Scene.sunLight aims the scene's directional light at a sky's sun each frame and recolors it from the sky, so the hard shadow tracks the same sun the sky draws and agrees with the sky-baked image-based lighting. The built-in gradient and physical sky sources implement the SunSky interface it consumes and expose sunLightColor/sunLightIntensity..fscene format, a stage's global look is now a referenced environment resource instead of inline stage fields (StageMetadata loses its environment/exposure/tone-mapping/skybox fields, and realizeStage takes an environmentLoader), backed by pooled EnvironmentResources, and prefab host-node additions are expressed as Attachments (replacing PrefabInstanceSpec.addedNodes). Imported textures and image or HDR environments stay external files next to the lean .fscene and are embedded into the self-contained .fsceneb at build time, multi-file .gltf (external resources) imports, prefab composition reports member origins (composeScene(memberOrigins:)) and gains applyPrefabOverride, and components declare a property schema (ComponentPropertyDef) that editors drive generically. These serve the in-development scene editor now hosted in the repository (unpublished, a desktop app over a headless command core and an MCP surface).Texture2D for textures with generated mipmaps and trilinear plus anisotropic filtering, built from an asset, a ui.Image, or raw pixels (Texture2D.fromAsset, Texture2D.fromImage, Texture2D.fromPixels). TextureContent selects how each mip level is filtered (color in linear light, raw data, or renormalized normals) and TextureSampling controls the mip filter, maximum mip level, and anisotropy. The runtime glTF loader now builds its textures as Texture2D, so imported models are mipmapped.baseColorTexture, metallicRoughnessTexture, normalTexture, emissiveTexture, occlusionTexture) now hold a TextureSource rather than a raw gpu.Texture. Assign a Texture2D or a RenderTexture directly, or wrap an existing gpu.Texture in GpuTextureSource.TextureAtlas, a helper for a uniform grid of packed tiles (voxel faces, sprite sheets, terrain) that resolves per-tile UVs and can build a PhysicallyBasedMaterial from its maps, along with generateSolidColorAtlasPixels for a placeholder atlas.PhysicallyBasedMaterial via specularAntiAliasingVariance and specularAntiAliasingThreshold, which widen roughness where the shading normal varies quickly to curb distant specular sparkle.normalScale not being applied to the perturbed normal.Scene.screenSpaceReflections. An optional pass layers sharp, view-dependent reflections on top of the image-based environment reflections every surface already receives, reconstructing each pixel's position and smooth normal from the shared camera depth prepass (no G-buffer), marching the reflected ray through the depth buffer in screen space, and sampling the already-lit scene color on a hit with the environment as the miss fallback, so it only ever adds detail. ScreenSpaceReflectionsSettings exposes intensity, range and thickness, stride (the quality dial) and maxSteps (a cost ceiling), glossy blur, a distance fade, resolutionScale to trace below full resolution, and a debugView, and a Screen-space Reflections example ships with a live tuning panel.RGBA16F texture instead of loading a bundled 8-bit PNG. The 8-bit table quantized the scale/bias terms into 256 steps, showing up as subtle radial banding on large glossy surfaces; the half-float table removes it (half-float linear filtering is core in GLES 3.0 / WebGL2). The ibl_brdf_lut.png asset is removed.MeshGeometry.fromArrays for streamed meshes. Bulk attribute copies, no repack for typed index lists, and an optional caller-supplied bounds.scene.depthOfField, driven by a thin-lens camera model with three quality tiers.shadowStatic, making static-world shadow rendering near free.scene_color, scene_depth) for refraction and depth-fade effects, and MaterialInputs gains specular..fmat skies with requires: [environment] sampling black on the roughness-mip layout, and ShaderSkySource.sampledEnvironment pins the sampled map.Node.meshNodes, Node.combinedWorldBounds, and PerspectiveCamera.framing..ply/.splat captures with GaussianSplats and draw them with SplatComponent, with a new example.SemanticsComponent, including hosted widget-surface semantics.WidgetComponent gains opt-in occlusionHiding.Camera.worldToScreen.PointLightComponent and SpotLightComponent, unlimited BVH-culled lights, spot shadows, KHR_lights_punctual import, and a Lights example.Geometry.extractMeshData(), MeshData ops (unweld, extractEdges, merge), and LineSegmentsGeometry for thick lines.bind surfaces take a TransientWriter where they previously took a gpu.HostBuffer.HostBuffer is a faithful flutter_gpu port again..fmat materials rendering nothing..fmat compiler no longer lets declared but unread resources strip out of the generated shaders, which surfaced as build errors or draw-time crashes.package:flutter_scene/noise.dart and #include <noise.glsl> (the Dart side is native-only for now).AmbientOcclusionSettings.depthMipChain (off by default) keeps occlusion accurate on grazing surfaces and large radii.scene.fog, with falloff modes, a height term, light in-scatter, and sky-color blending.Scene.addRenderPass, powering the new Node.highlightColor selection outlines.depth, normals, shadowMap) through RenderInput.scene.godRays.ResourceGroup, SceneView.loading/revealMinDuration, Scene.warmUp, and background-isolate GLB geometry packing..fmat materials gain a vertex stage (a Vertex() hook, varyings, custom attributes), applied consistently across the color, shadow, depth, and pick passes.Scene.initializeStaticResources() completes.Scene.camera with CameraComponent auto-promotion, and a default camera so a bare SceneView(scene) always renders.BillboardGeometry, SpriteMaterial, and Sprite.shadowAmbientStrength, shadowCasterFaces, and cascades that extend toward the sun so long shadows stop dropping out.VertexLayoutDescriptor and unskinned geometry is structure of arrays (.fscene gains unskinned_soa; old files still load).collisionShape physics bridge.LodComponent, with screen-size selection, hysteresis, and dithered cross-fade.EnvironmentMap.fromEquirectHdr keeps HDR intensity through the prefilter.EnvironmentSettings, Scene.baseEnvironment, and EnvironmentVolume.Scene.sunLight, aiming and coloring the directional light from the sky..fscene stages reference an environment resource instead of inline stage fields, and prefab host-node additions are Attachments.Texture2D (generated mips, trilinear and anisotropic filtering) with TextureContent/TextureSampling; imported models are now mipmapped.TextureSource instead of a raw gpu.Texture.TextureAtlas for uniform tile grids.PhysicallyBasedMaterial.normalScale not being applied to the perturbed normal.Scene.screenSpaceReflections, with an example and live tuning panel.RGBA16F, removing banding and the bundled PNG.No code changes. Reworded the package description, added the Flutter Scene logo as a pub.dev screenshot so it shows in search results, and removed a s
Added offscreen render targets. A RenderTexture is a fixed-size target a RenderView can render into (RenderView.target); add such views to the new Sce
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.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.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.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..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.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.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).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.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.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.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.WidgetInput.manual. SceneView.debugWidgetInput overlays the pointer's hit node, UV, and distance for input debugging.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.WidgetTexture (the low-level capture primitive behind WidgetComponent) and Camera.screenPointToRay (screen position to world ray, for picking and custom input).UnlitMaterial.alphaMode (opaque or blend), routing unlit surfaces through the depth-sorted translucent pass.Surface.lastSwapchainColorTexture, the previous frame's color texture, safe to sample from materials for one-frame feedback effects.RenderTexture, Scene.views, and the RenderTextureView widget.Scene.initializeStaticResources() before constructing geometry or materials.flutter SDK constraint is now >=3.44.0; the real requirement is a 2026-06-09 or later master build (see the README)..fscene via a renderTexture resource kind and a top-level views array.RenderTexture for live render-to-texture sampling.Scene.renderScale) and composite filtering (Scene.filterQuality), with per-view overrides.auto is the new default, so backends without MSAA now get FXAA.InstancedMesh. Breaking for direct VertexLayout construction, which now takes a list of VertexBuffers.Scene.raycast/raycastAll, with layer masks and Node.raycastable.WidgetComponent, a live interactive widget subtree on a scene surface.WidgetInput.manual opt-out and SceneView.debugWidgetInput.ScenePointer for programmatic scene input.WidgetTexture and Camera.screenPointToRay.UnlitMaterial.alphaMode.Surface.lastSwapchainColorTexture for one-frame feedback effects.Added SceneView, a widget that renders a Scene and drives its per-frame loop, so apps no longer write their own CustomPainter. It takes a fixed camera
SceneView, a widget that renders a Scene and drives its per-frame loop, so apps no longer write their own CustomPainter. It takes a fixed camera or a cameraBuilder(elapsed) and exposes the scene to descendants through SceneScope.SceneView. Editing a .fmat updates the running scene in place (culling, blending, shading model, and parameter defaults, plus the GLSL body) with no app code, and re-exporting a .glb (or editing a referenced prefab) patches the scene in place while preserving node identity, transforms, and animation playback. Load materials and scenes by source path (loadFmatMaterial, loadScene) to participate; loadScene takes an optional onReload callback for re-applying per-instance customizations after a scene is patched.buildScenes can auto-discover assets/**/*.glb and register the generated .fsceneb packages as DataAssets, and loadScene / SceneRegistry load them by source path. Requires Dart data assets (flutter config --enable-dart-data-assets). The composed document and its GPU resources are cached per scene, so loading the same scene again instantiates a fresh node graph cheaply, sharing those resources. The dart run flutter_scene:init hook wires up both buildScenes and buildMaterials. Both accept a discoveryRoot to auto-discover under a directory other than assets/, or an explicit list to bypass discovery.AnimationClip.rebind / AnimationPlayer.rebind (animation re-binding across a hot reload, keeping playback state) and Mesh.clone so cloned scene instances get independent materials.buildScenes carries an offline-baked pose-union bound (the union of every animated pose's extent), so skinned content is frustum-culled soundly instead of being treated as always visible..model format. Node.fromAsset and Node.fromFlatbuffer are gone, along with the fromFlatbuffer constructors on Geometry, Material, Skin, and Animation. Convert .glb sources with the buildScenes build hook and load them by source path with loadScene, or load glTF binaries at runtime with Node.fromGlbAsset / Node.fromGlbBytes (no conversion step needed)..fmat materials are now auto-discovered under assets/ (matching where .glb models are discovered) instead of materials/, and loadFmatMaterial resolves a material by its .fmat source path (for example assets/toon.fmat) instead of by material name, so materials that share a name in different directories no longer collide. Move .fmat files under assets/, or pass an explicit list to buildMaterials..fmat materials and models now requires flutter_gpu_shaders 0.5.0..fscene / .fsceneb serialized scene format: author scenes as text or import them from .glb with buildScenes, and load them by source path with loadScene (with in-place hot reload, prefabs, and streaming). Prefab expansion is deterministic, so an unchanged scene composes to the same ids across sessions and platforms.serializeScene captures a live node graph back into a document (geometry, materials, skins, animations, visibility, and hand-built meshes included), and realizeStage / serializeStage apply and read back scene-level render settings (environment, skybox, sky lighting, exposure, tone mapping). A realized scene round-trips through writeFsceneb byte-stably.compressTextures on the importers and build hooks. Images are stored as mipped, supercompressed KTX2 block payloads and transcoded at load to a format the device supports; transcoding runs off the main isolate. Opaque textures take BC1, ETC2 RGB8, or ASTC; textures with alpha take BC3, ETC2 RGBA8, or ASTC with per-block RGBA endpoints, with an rgba8 fallback everywhere.Scene.skybox to draw a background behind all geometry, with no user geometry or draw ordering. The built-in EnvironmentSkySource shows the scene environment with a blurriness control that reuses the prefiltered roughness bands, so the backdrop always matches reflections.ShaderSkySource draws a full-screen sky fragment (the engine supplies the world view direction as v_ray), and a .fmat with a sky { vec3 Sky(vec3 direction) } block compiles to one through the existing material pipeline: load it with loadFmatSky for typed parameters and in-place hot reload, and declare requires: [environment] to sample the scene's prefiltered radiance.EnvironmentMap.fromSky bakes any shader sky into the image-based lighting (specular and diffuse, projected on the GPU), and Scene.skyEnvironment keeps the bake fresh on a refresh policy (manual with invalidate(), an interval, or every frame). After a binding's first synchronous bake, re-bakes are time-sliced one GPU pass per frame into double-buffered targets, so refreshes never spike a frame.GradientSkySource (zenith/horizon/ground colors with an HDR sun disk) and PhysicalSkySource (an analytic single-scattering daylight atmosphere driven by a sun direction).EnvironmentMap.fromGpuTextures accepts a diffuseShTexture computed on the GPU..fmat that fails to compile during hot reload no longer fails the whole build: the last good shaders stay active and the compile error is reported in the console, both from the build hook and in the running app..fmat no longer re-imports every scene on hot reload. Set FLUTTER_SCENE_DISABLE_BUILD_CACHE to always reconvert.SceneView, a widget that renders a Scene and drives its frame loop..fmat materials and re-exported .glb scenes, patched in place.dart run flutter_scene:init wiring.AnimationClip.rebind/AnimationPlayer.rebind and Mesh.clone.buildScenes carries a pose-union bound for sound frustum culling..model format; convert with buildScenes or load GLBs at runtime..fmat materials are discovered under assets/ and loaded by source path via loadFmatMaterial..fmat materials and models requires flutter_gpu_shaders 0.5.0..fscene/.fsceneb serialized scene format with prefabs, hot reload, and deterministic composition.serializeScene and realizeStage/serializeStage, round-tripping byte-stably.Scene.skybox and the built-in EnvironmentSkySource.ShaderSkySource and .fmat sky blocks.EnvironmentMap.fromSky and Scene.skyEnvironment, with time-sliced re-bakes.GradientSkySource and PhysicalSkySource.fromGpuTextures accepts a GPU-computed diffuseShTexture..fmat compile failure during hot reload keeps the last good shaders and reports the error.FLUTTER_SCENE_DISABLE_BUILD_CACHE to always reconvert.Added an abstract physics contract so a physics engine can drive scene nodes: rigid bodies, colliders and shapes, joints, physics materials, scene que
Basic kinematic world. A full engine backend is provided by the flutter_scene_rapier package.WedgeGeometry, a triangular-prism ramp primitive.Scene.ambientOcclusion (off by default). It darkens the indirect (image-based) lighting in creases and contact points for softer, more grounded shading. The implementation is Scalable Ambient Obscurance, evaluated from a camera depth prepass with no normal buffer and no compute, so it works on every backend including the WebGL2 fallback. Settings cover the radius, intensity, bias, sample count, an optional half-resolution mode (on by default) for lower cost, and an optional specular occlusion term. Requires a PerspectiveCamera.flutter_scene_rapier.WedgeGeometry, a triangular-prism ramp primitive.Scene.ambientOcclusion, working on every backend.Custom materials and a post-processing effects chain.
Custom materials and a post-processing effects chain.
.fmat custom-material format: declare typed parameters and a small Surface() GLSL function instead of hand-binding a raw shader. The buildMaterials build hook compiles a .fmat into a shader bundle plus a metadata sidecar; at runtime, PreprocessedMaterial and MaterialParameters set the parameters by name with type checking and no manual std140 packing. The lower-level ShaderMaterial remains as an escape hatch. See MATERIALS.md.Scene.postProcess: bloom, color grading (brightness, contrast, saturation, white balance, lift/gamma/gain), vignette, chromatic aberration, and film grain. Each effect is off by default.PostEffect, a custom post-processing effect authored as a fragment shader, the post-processing counterpart of ShaderMaterial. An effect runs before or after tone mapping and reads the current color through input_color. See POST_PROCESSING.md..fmat custom materials requires flutter_gpu_shaders 0.4.4 or newer..fmat custom-material format, compiled by buildMaterials and driven at runtime with typed parameters. See MATERIALS.md.Scene.postProcess (bloom, color grading, vignette, chromatic aberration, film grain), each off by default.PostEffect for custom post-processing shaders. See POST_PROCESSING.md..fmat custom materials requires flutter_gpu_shaders 0.4.4 or newer.Fixed mirrored geometry rendering inside-out; cull winding now follows the world-transform determinant.
material.doubleSided being ignored by the runtime glTF importer.Now WASM-compatible; build-hook helpers no longer pull dart:io onto the web graph.
dart:io onto the web graph.flat_buffers to ^25.9.23.Renderer overhaul, with several breaking changes.
Renderer overhaul, with several breaking changes.
ShadowPass? -> ScenePass -> TonemapPass) with a transient-texture pool.MATERIALS.md).Scene (exposure, toneMapping, physicalCameraExposure).DirectionalLight with PCF shadow mapping, assignable as Scene.directionalLight.Environment removed in favor of Scene.environment (an EnvironmentMap) and Scene.environmentIntensity.EnvironmentMap always carries a prefiltered atlas plus SH-9; the procedural EnvironmentMap.studio() is the new default.ShaderMaterial.useEnvironment now binds prefiltered_radiance and brdf_lut.flutter_scene_importer folded into flutter_scene (package:flutter_scene/build_hooks.dart), with a curated gpu.dart for custom shaders.Added ShaderMaterial, custom fragment shaders with uniform and texture binding by name and render-state knobs.
ShaderMaterial, custom fragment shaders with uniform and texture binding by name and render-state knobs.MATERIALS.md, the custom-shader contract guide.Added bounding-volume and frustum culling, with offline pose-union bounds for skinned content.
Geometry, Mesh, and Node, plus Camera.getFrustum.Fixed the Node.globalTransform setter scaling by the parent's determinant instead of composing with its inverse.
Node.globalTransform setter scaling by the parent's determinant instead of composing with its inverse.Added a runtime GLB importer, Node.fromGlbBytes and Node.fromGlbAsset.
Node.fromGlbBytes and Node.fromGlbAsset. (#12)flutter_scene_importer to ^0.11.0 (pure Dart, no CMake).Migrated from the discontinued native_assets_cli to hooks 1.0; build hooks now import package:hooks/hooks.dart.
native_assets_cli to hooks 1.0; build hooks now import package:hooks/hooks.dart. (#82)--enable-experiment=native-assets flag that broke builds on Dart 3.10+. (#82)flutter_gpu_shaders to ^0.4.0.Fix globalTransform calculation.
Fix invalid usage of textureLod on desktop platforms.
Update to native_assets_cli 0.13.0.
Update to Flutter 3.29.0-1.0.pre.242.
Update to native_assets_cli 0.9.0.
Fix memory leak in transients buffer.
Support non-embedded/URI-only image embeds.
Support node cloning for skins.
Add animation playback (Animation, AnimationPlayer, AnimationClip).
Bump flutter_scene_importer version.
Switch to pre-release versioning.
PredictedTransformComponent with PredictedController , client-side prediction of an owned entity with authoritative input-replay reconciliation, so lo
PredictedTransformComponent with PredictedController, client-side prediction of an owned entity with authoritative input-replay reconciliation, so local input renders instantly while the sim stays server-authoritative. Selected per entity through SceneReplication's localPrediction seam.PredictedPhysicsComponent with PredictedPhysicsController, rollback prediction for an owned physics body. Mispredictions restore a retained world snapshot, adopt the authoritative pose, and replay pending inputs through the simulation. Needs a snapshot-capable backend (rapier).PredictedPhysicsController.onWorldRestored fires after a rollback restore. A restore rewinds to the body set its snapshot captured, so a controller managing bodies dynamically (remote-player proxies) allocates a fixed pool before the first snapshot rather than recreating them.NetworkTransformComponent re-anchors its interpolation buffer after an idle gap, so a resuming remote eases in instead of snapping.minDelay and the configured ceiling, so clean links render remotes barely behind while jittery ones buffer deep.SceneReplication.inputTargetDepth passes the input buffer depth through to the client (1 suits local or stable links).SceneReplication.minInterpolationDelay and SceneReplication.adaptiveInterpolation reach the interpolation buffer, so an app can floor the adaptive delay or hold it fixed.maxCatchUpTicks and snap to authority past it, so a backgrounded tab or a long hitch does not replay every missed tick in one frame.dashwire_replication 0.2.1 for the input-command and prediction substrate.PhysicsSimulation contract from package:scene; the runtime dependency moved from flutter_scene to scene.Box3dRigidBody, Box3dCollider, and Box3dJoint types; construct only Box3dPhysicsWorld and attach flutter_scene's generic RigidBody, Collider, and joint components.PhysicsWorld now, PhysicsWorld(Box3dPhysicsWorld(...)), instead of adding the concrete components directly.box3d ^0.1.1 for the Android native load fix.flutter_scene constraint to ^0.24.0.flutter_soloud 5.1.2, which compiles the engine through a build hook and fetches prebuilt Ogg, Vorbis, Opus, and FLAC libraries for the target on first build, Linux arm64 included. Apps can instead link system packages, compile the codecs from source, or build without them through hooks.user_defines.flutter_soloud in their pubspec (see the README).assets/packages/flutter_soloud/web/init_soloud.js from index.html (renamed upstream).SoloudAudioEngine.bufferSize (config key bufferSize) to start SoLoud with a smaller, lower-latency mix buffer.Development funded by our sponsors, Primio (Silver).
Add registerSoloudAudioBackend() , so documents naming soloud as their audio engine realize a SoloudAudioEngine .
registerSoloudAudioBackend(), so documents naming soloud as their audio engine realize a SoloudAudioEngine.flutter_scene ^0.22.0.registerFmodAudioBackend(), so documents naming fmod as their audio engine realize an FmodAudioEngine.flutter_scene_components.json manifest for the fmodEvent component, kept in sync by a test.FmodEventCodec.flutter_scene ^0.22.0.Typed actions ( ButtonAction , AxisAction , VectorAction , DeltaAction ) bound to physical controls through named slots in an ActionSet .
ButtonAction, AxisAction, VectorAction, DeltaAction) bound to physical controls through named slots in an ActionSet.DpadBinding, AxisPairBinding, ChordBinding, GatedBinding) with processors (Deadzone, Scale, Invert, ResponseCurve, PerSecond, SwapAxes), tunable sensitivity, inversion, and deadzones.InputListener, and InputScope.gamepads package with hot-plug, stable device handles, pairing, JoinHelper, and a macOS HID fallback for pads the GameController framework misses.PointerLock for first-person mouse look on macOS, Windows, Linux (X11 and Wayland), and the web.player.overrides, versioned JSON profiles with renames and migration, listenForBinding, conflict detection, and bindingDisplay labels that follow keyboard layout and pad style.scene.attachInput, node.playerInput, PlayerBinding, drivers for the bundled character and camera controllers, and DefaultActions.InputDebugOverlay and an injection API for tests, bots, and replays.Development funded by our sponsors, Primio (Silver).
* Initial render box.
One column per quarter.