KhronosGroup / ANARI-Docs

ANARI Documentation
Other
31 stars 8 forks source link

Confusing description of transform sampler #85

Closed UX3D-haertl closed 1 year ago

UX3D-haertl commented 1 year ago
| Name            | Type                                                       | Default                         | Description
| inAttribute | `STRING` | `attribute0` | surface attribute used as texture coordinate
| outTransform | `FLOAT32_MAT4` | \((1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1)) | transform applied to coordinates before sampling
|===================================================================================================

The sampler accepts any attribute, not just texture coordinates. This confused me quite a bit, especially since you actually can not use it as texture coordinates in another sampler.

progschj commented 1 year ago

The mention of textures is probably a copy&paste artifact from the image samplers. #92 removes mention of textures and adds a hopefully clarifying note.