-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Khronos Material Extensions for glTF 2.0 #5178
Comments
See also Autodesk's Standard Surface. |
We already have emissive and bloom, and would like to support |
Someone could resubmit gltf-rs/gltf#350 |
Adobe has a really nice material model as well! |
gltf-rs/gltf#374 has been merged :) |
Also note that #8015 will cover some more of these properties |
# Objective - Fix blender gltf imports with emissive materials - Progress towards #5178 ## Solution - Upgrade to gltf-rs 1.3 supporiting [KHR_materials_emissive_strength](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_emissive_strength/README.md) --- ## Changelog - GLTF files using `emissiveStrength` (such as those exported by blender) are now supported ## Migration Guide - The GLTF asset loader will now factor in `emissiveStrength` when converting to Bevy's `StandardMaterial::emissive`. Blender will export emissive materials using this field. Remove the field from your GLTF files or manually modify your materials post-asset-load to match how Bevy would load these files in previous versions.
OpenPBR has been released! https://github.com/AcademySoftwareFoundation/OpenPBR, https://academysoftwarefoundation.github.io/OpenPBR/ |
# Objective - Fix blender gltf imports with emissive materials - Progress towards bevyengine/bevy#5178 ## Solution - Upgrade to gltf-rs 1.3 supporiting [KHR_materials_emissive_strength](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_emissive_strength/README.md) --- ## Changelog - GLTF files using `emissiveStrength` (such as those exported by blender) are now supported ## Migration Guide - The GLTF asset loader will now factor in `emissiveStrength` when converting to Bevy's `StandardMaterial::emissive`. Blender will export emissive materials using this field. Remove the field from your GLTF files or manually modify your materials post-asset-load to match how Bevy would load these files in previous versions.
What problem does this solve or what need does it fill?
Bevy's
StandardMaterial
supports the same parameters supported by the metallic-roughness material model, as well as the additional parameters from https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#materials. (normal, occlusion, emissive, alphaMode, doubleSided, and unlit)The "Ratified Khronos Extensions for glTF 2.0" defines 8 more: https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos
Specifically, these are:
What solution would you like?
When loading a glTF Mesh, the user could opt-in to certain extensions which would then be available on the material.
The text was updated successfully, but these errors were encountered: