Mat4:reflect

Edit

Turns the matrix into a reflection matrix that transforms values as though they were reflected across a plane.

self = Mat4:reflect(position, normal)

Arguments

NameTypeDescription
positionVec3 The position of the plane.
normalVec3 The normal vector of the plane.

Returns

NameTypeDescription
selfMat4 The reflected matrix.

See also