コンテンツにスキップ

Common Types

このページでは、navara_three の複数のマテリアルやディスクリプタで共有されるプリミティブ型について説明します。

2D ベクトルを表すプレーンオブジェクト型です。

type Vec2 = { x: number; y: number };

Type: number

Description: X 座標値。

Type: number

Description: Y 座標値。

3D のベクトルや座標を表すプレーンオブジェクト型です。

type XYZ = { x: number; y: number; z: number };

Type: number

Description: X 座標値。

Type: number

Description: Y 座標値。

Type: number

Description: Z 座標値。