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

# `mat2`

타입

2x2 matrix of `f32`, column-major, same type as `mat2x2`.

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

## 구문

```ts
type mat2<T extends f32 | f64 = f32> = mat2x2<T>
```

## 매개변수

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

## 예제

- [`gallery/capsule-corp-namek-class/capsule-corp-namek-class.shade.ts`](https://typeshade.dev/ko/guide/examples/capsule-corp-namek-class/)

## 함께 보기

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