---
title: "mat3 in WGSL, GLSL and TypeShade: shader type reference"
description: "mat3 is mat3x3<f32> in WGSL and mat3 in GLSL ES 3.00. 3x3 matrix of f32, column-major, same type as mat3x3."
url: https://typeshade.dev/reference/types/mat3/
language: en
---

# `mat3`

Type

3x3 matrix of `f32`, column-major, same type as `mat3x3`.

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

## Syntax

```ts
type mat3<T extends f32 | f64 = f32> = mat3x3<T>
```

## Parameters

- `T` optional `f32 | f64`

## Examples

- [`gallery/normal-matrix/normal-matrix.shade.ts`](https://typeshade.dev/guide/examples/normal-matrix/)

## See also

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