Fix a crash in gltfio when not using ubershaders (#7135)
This commit is contained in:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user