bevyengine / bevyengine/bevy

Add support for Khronos Material Extensions for glTF 2.0

Open
#5,178 8 comments 11 reactions 0 assignees View on GitHub
A-Assets A-Rendering C-Feature
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## 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:
```
KHR_materials_clearcoat,
KHR_materials_emissive_strength,
KHR_materials_ior,
KHR_materials_sheen,
KHR_materials_specular,
KHR_materials_transmission,
KHR_materials_variants,
KHR_materials_volume
```

## 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.