---
title: "mat4x4 in WGSL, GLSL and TypeShade: shader type reference"
description: "mat4x4 is mat4x4<f32> in WGSL and mat4 in GLSL ES 3.00. 4x4 matrix of f32 (or f64 as mat4x4<f64>), column-major."
url: https://typeshade.dev/reference/types/mat4x4/
language: en
---

# `mat4x4`

Type

4x4 matrix of `f32` (or `f64` as `mat4x4<f64>`), column-major.

The signature, the sentence and any message are the compiler's own text at commit af54ddad5.

## Syntax

```ts
type mat4x4<T extends f32 | f64 = f32> = Mat<typeof f64Tag extends keyof T ? 'f64' : 'f32', 4, 4>
```

## Parameters

- `T` optional `f32 | f64`

## See also

- [Types](https://typeshade.dev/reference/types/)
