Undefined behaviour in KHR_materials_volume
UX3D-haertl opened this issue · 0 comments
UX3D-haertl commented
As described in this sample viewer issue: KhronosGroup/glTF-Sample-Viewer#489
The KHR_materials_volume spec defines the following equation:
σt = -log(c) / d
where c
is attenuationColor
and d
is attenuationDistance
.
If any of the color components are zero this leads to undefined behaviour.
This can be tested with e.g. Sample Viewer or three.js.
In the sample viewer issue the introduction of an epsilon value is suggested.
Clarification for this issue should be added to the specification.