czm_tangentToEyeSpaceMatrix

czm_tangentToEyeSpaceMatrix

Creates a matrix that transforms vectors from tangent space to eye space.

Parameters:
Name Type Description
normalEC vec3 The normal vector in eye coordinates.
tangentEC vec3 The tangent vector in eye coordinates.
binormalEC vec3 The binormal vector in eye coordinates.
Returns:
mat3 The matrix that transforms from tangent space to eye space.
Example
mat3 tangentToEye = czm_tangentToEyeSpaceMatrix(normalEC, tangentEC, binormalEC);
vec3 normal = tangentToEye * texture2D(normalMap, st).xyz;
Source: