LightsprintSDK 2021.08.08
rr::RRMesh::TangentBasis Struct Reference

#include <RRMesh.h>

Public Member Functions

void buildBasisFromNormal ()
 

Public Attributes

RRVec3 normal
 
RRVec3 tangent
 
RRVec3 bitangent
 

Detailed Description

Tangent basis in object space.

Normal must be normalized. Orthonormality is not mandatory. Tangent and bitangent affect only directional lightmaps.

Member Function Documentation

◆ buildBasisFromNormal()

void rr::RRMesh::TangentBasis::buildBasisFromNormal ( )

Build orthonormal base from normalized normal.

Member Data Documentation

◆ normal

RRVec3 rr::RRMesh::TangentBasis::normal

◆ tangent

RRVec3 rr::RRMesh::TangentBasis::tangent

◆ bitangent

RRVec3 rr::RRMesh::TangentBasis::bitangent