KhronosGroup / ANARI-Docs

ANARI Documentation
Other
31 stars 8 forks source link

Explain how to use occlusion strength from glTF in PBR #129

Closed UX3D-haertl closed 1 week ago

UX3D-haertl commented 2 months ago

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.