Skip to content

Sign up to be notified when the ShaderHunt platform is available, along with interactive examples teaching TypeGPU from the ground up.

translation4

translation4(vector): m4x4f

Defined in: packages/typegpu/src/data/matrix.ts:577

Creates a 4-by-4 matrix which translates by the given vector v.

v3f

The vector by which to translate.

m4x4f

The translation matrix.