# Octree formulas

Some useful formulas when dealing with octrees. Remember that an octree of height h equal to zero means that it is composed by a single root node with no children.

# Tangent space matrix (TBN)

The tangent space matrix of a vertex on a surface (also called TBN matrix, due to its components), is a matrix that converts from coordinates expressed in tangent space to coordinates expressed in object space (being the later, the base in which all vertex coordinates are expressed).