Repository navigation
flutter_scene 0.15.0
Custom materials and a post-processing effects chain.
- Added the
.fmatcustom-material format: declare typed parameters and a smallSurface()GLSL function instead of hand-binding a raw shader. ThebuildMaterialsbuild hook compiles a.fmatinto a shader bundle plus a metadata sidecar; at runtime,PreprocessedMaterialandMaterialParametersset the parameters by name with type checking and no manual std140 packing. The lower-levelShaderMaterialremains as an escape hatch. SeeMATERIALS.md. - Added a post-processing suite configured per scene via
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. - Added
PostEffect, a custom post-processing effect authored as a fragment shader, the post-processing counterpart ofShaderMaterial. An effect runs before or after tone mapping and reads the current color throughinput_color. SeePOST_PROCESSING.md. - The tone-mapping pass is now the resolve pass: it applies exposure, color grading, the tone-mapping operator, and the display EOTF, and composites bloom.
- Fixed image-based lighting on the OpenGL ES backend.
- Building
.fmatcustom materials requiresflutter_gpu_shaders0.4.4 or newer.