Skip to content

flutter_scene 0.24.2

Choose a tag to compare

@bdero bdero released this 08 Oct 23:31
· 33 commits to master since this release
  • 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.
  • Temporal anti-aliasing's objectMotion works on the web. Its velocity shaders failed to link on WebGL2, so every frame threw.
  • An object that stops moving no longer keeps reporting its last step in the velocity buffer, so temporal anti-aliasing stops reprojecting it as if it still moved.
  • Scenes drawn in the same frame pace the GPU together, so a second 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.
  • Directional shadows fade to lit over the last tenth of 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.