SoWEMRendererTangents¶
- InventorModule¶
genre
author
package
dll
definition
see also
keywords
Purpose¶
The SoWEMRendererTangents calculates per-vertex tangents based on the face tangents using the face vertices and the textureS/textureT texture coordinates (PVLs).
The tangents are added as a vertex attribute of the following type:
attribute vec3 wemTangent;
The main usage for these tangents is to render normal maps that are defined in tangent space.
Usage¶
The module needs to be connected to the SoWEMRenderer.inExtensions field.
Tips¶
The module will not work without textureS/textureT texture coordinates in the WEM. The tangents are averaged at each vertex, the algorithm does not create extra vertice/tangents at colliding faces (it averages tangents regardless of their angle to each other).
Output Fields¶
self¶
- name: self, type: SoNode¶