2.5
Transforms

- 2.5.1. Overview
- 2.5.2. Types

2.5.1
Overview
1
The ultimate purpose of a transform is to produce one or more matrices that can be combined with other matrices and then finally passed to a shader. The shader uses these matrices to transform vertices and normal vectors during the rendering of objects.
2
A transform is effectively responsible for producing a model matrix that transforms positions in object space to world space.
3
In practical terms, a transform is a matrix used to position, scale, and rotate instances in a scene. This is achieved by multiplying the matrix with the object space positions of all vertices of the mesh that makes up the instance during rendering.
2.5.2
Types
1
In the r2 package, transforms are instances of R2TransformType.