ANARI-Docs icon indicating copy to clipboard operation
ANARI-Docs copied to clipboard

Explain how to use occlusion strength from glTF in PBR

Open UX3D-haertl opened this issue 5 months ago • 0 comments

occlusion strength is used in glTF with the following formula: 1.0f + occlusionStrength * (sampledValue - 1.0f) Ref: https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#_material_occlusiontextureinfo_strength.

This can be restructed to occlusionStrength * sampledValue + (1.0f-occlusionStrength), which can be supplied to outTransform and outOffset. This should be added as a note.

UX3D-haertl avatar Sep 17 '24 15:09 UX3D-haertl