Fix a crash in gltfio when not using ubershaders (#7135)

This commit is contained in:
Romain Guy
2023-09-02 12:45:58 -07:00
committed by GitHub
parent 0f21c6c90b
commit 9046d04de4
2 changed files with 2 additions and 1 deletions

View File

@@ -13,4 +13,5 @@ appropriate header in [RELEASE_NOTES.md](./RELEASE_NOTES.md).
dark fringes to appear (recompile materials)
- Allow glTF materials with transmission/volume extensions to choose their alpha mode
instead of forcing `MASKED`
- Fix a crash in gltfio when not using ubershaders
- Use flatmat for mat parameter in jsbinding

View File

@@ -287,7 +287,7 @@ std::string shaderFromKey(const MaterialKey& config) {
// TODO: Provided by Filament, but this should really be provided/computed by gltfio
// TODO: This scale is per renderable and should include the scale of the mesh node
float scale = object_uniforms.userData;
float scale = getObjectUserData();
material.thickness = materialParams.volumeThicknessFactor * scale;
)SHADER";