Lagrange
|
Option struct for computing tangent and bitangent vectors. More...
#include <lagrange/compute_tangent_bitangent.h>
Public Attributes | |
std::string_view | tangent_attribute_name = "@tangent" |
Output tangent attribute name. | |
std::string_view | bitangent_attribute_name = "@bitangent" |
Output bitangent attribute name. | |
std::string_view | uv_attribute_name = "" |
UV attribute name used to orient the BTN frame. More... | |
std::string_view | normal_attribute_name = "" |
Normal attribute name used to compute the BTN frame. More... | |
AttributeElement | output_element_type = AttributeElement::Indexed |
Output element type. Can be either Corner or Indexed. | |
bool | pad_with_sign = false |
Whether to pad the tangent/bitangent vectors with a 4th coordinate indicating the sign of the UV triangle. | |
Option struct for computing tangent and bitangent vectors.
std::string_view uv_attribute_name = "" |
UV attribute name used to orient the BTN frame.
Must be an indexed attribute. If left empty, the first indexed UV attribute is used.
std::string_view normal_attribute_name = "" |
Normal attribute name used to compute the BTN frame.
Must be an indexed attribute. The output tangent/bitangent vectors are projected into the plane orthogonal to the normal vector at each triangle corner. If the output element type is set to Indexed
, the indices in the provided normal attribute are also used to aggregate BTN frames between neighboring triangles. If left empty, the first indexed Normal attribute is used.