---
title: "mat4: WGSL, GLSL과 TypeShade에서 쓰는 형태와 그 뜻, 셰이더 타입 참조"
description: "TypeShade의 mat4 타입은 WGSL에서 mat4x4<f32>, GLSL ES 3.00에서 mat4 형태로 씁니다. 4x4 matrix of f32, column-major, same type as mat4x4."
url: https://typeshade.dev/ko/reference/types/mat4/
language: ko
---

# `mat4`

타입

4x4 matrix of `f32`, column-major, same type as `mat4x4`.

시그니처와 이름 아래 문장, 컴파일러 메시지는 커밋 af54ddad5의 컴파일러가 쓴 영어 원문입니다.

## 구문

```ts
type mat4<T extends f32 | f64 = f32> = mat4x4<T>
```

## 매개변수

- `T` 선택 사항 `f32 | f64`

## 예제

- [`gallery/bit-bump/bit-bump.shade.ts`](https://typeshade.dev/ko/guide/examples/bit-bump/)
- [`gallery/hello-camera/hello-camera.shade.ts`](https://typeshade.dev/ko/guide/examples/hello-camera/)
- [`gallery/normal-matrix/normal-matrix.shade.ts`](https://typeshade.dev/ko/guide/examples/normal-matrix/)

## 함께 보기

- [타입](https://typeshade.dev/ko/reference/types/)
