Mat4:reflect
EditTurns the matrix into a reflection matrix that transforms values as though they were reflected across a plane.
self = Mat4:reflect(position, normal)
Arguments
Name | Type | Description |
position | Vec3 | The position of the plane. |
normal | Vec3 | The normal vector of the plane. |
Returns
Name | Type | Description |
self | Mat4 | The reflected matrix. |