v1.9.11
Engine
- materials: Added
sheenColor
andsheenRoughness
properties to materials to create cloth/fabric. - materials: Materials generation using
libfilamat
is now multi-threaded. - materials: Modulate emissive by alpha on blended objects.
- API:
MaterialBuilder::build()
now expects a reference to aJobSystem
to multi-thread shaders
generation. AJobSystem
can be obtained withEngine::getJobSystem()
when using Filament,
or created directly otherwise. (⚠️ API change) - engine: Fix, punctual lights get clipped at certain angles.
- engine: Fix memory leak when calling
View::setViewport
frequently. - engine: Fix, materials not working on some Qualcomm devices.
- engine: Fix,
RenderTarget
cleared multiple times. - Java: Fix JNI bindings for color grading.
- Android: reduced binary size.
Platforms and backends
- Added support for Apple silicon Macs. build.sh can now be used to build on either Apple silicon or
Intel-based Macs. Pass the-l
flag to build universal binaries. - Metal: honor
inverseFrontFaces
inRasterState
. - Metal: Fix crash when switching between views with shadowing enabled.
- Metal: Fix crash when calling
Texture::setImage()
onSAMPLER_2D_ARRAY
texture. - WebGL: Fix samples erroring on Windows with Chrome.
- WebGL: Support
highlight
for setBloomOptions in JavaScript. - WebGL: Include TypeScript bindings in releases.
Libraries, tools, and samples
- gltfio: added support for
KHR_materials_sheen
. - gltfio: shader optimizations are now disabled by default, unless opting in or using ubershaders.
- gltfio: Fix
_maskThreshold not found
error. - gltfio on Java: fix potential memory leak in
AssetLoader.destroy()
. - gltfio: fix crash during async texture decode.
- gltfio: support animation in dynamically-added instances.
- gltfio: Improve robustness when decoding textures.
- gltfio: Fix animator crash for orphaned nodes.
- gltfio: fix tangents with morphing.
- gltf_viewer: fix very sporadic crash when exiting.
- gltf_viewer: fix crash when rapidly switching between glTF models.
- sampels: Add planar reflection RenderTarget demo.
Examples
New sheen
and sheenRoughness
material properties: