Cycles Standalone: Expose vertex normals and tangent space attributes in XML API #9

Merged
Brecht Van Lommel merged 1 commits from howetuft/cycles:tangents into main 2024-02-09 12:12:04 +01:00

1 Commits

Author SHA1 Message Date
82b7c730c5
Expose vertex normals and tangent space attributes in Cycles XML API
The vertex normals and tangent space attributes are not currently exposed by
the XML API, in the Mesh node. This notably prevents the XML API user
from applying normal maps to meshes in tangent space.

To overcome this situation, this commit adds three XML attributes to the
Mesh node: 'N' (vertex normals), 'tangent' and 'tangent_sign'.

Nota: at the moment, these attributes are only available for non-subdivided
meshes.
2024-02-09 06:31:03 +01:00