MaterialX icon indicating copy to clipboard operation
MaterialX copied to clipboard

Gltf attribute attenuation_distance does not have a default value

Open JGamache-autodesk opened this issue 3 years ago • 2 comments

As seen here:

    <input name="attenuation_distance" uniform="true" type="float" uimin="0" uiname="Attenuation Distance" uifolder="Volume" />

And if I read the specs correctly, the default should be +infinity. Should we represent that using FLOAT_MAX?

JGamache-autodesk avatar Nov 08 '22 16:11 JGamache-autodesk

It is going to be interesting to build a UI to manipulate that value.

JGamache-autodesk avatar Nov 08 '22 16:11 JGamache-autodesk

Good point, @JGamache-autodesk, and I wonder if we should select a suitably-large finite value as the canonical default, for the benefit of UI systems that don't support infinity.

jstone-lucasfilm avatar Nov 12 '22 01:11 jstone-lucasfilm