殺虫侍
読み取り中…
検索中…
一致する文字列を見つけられません
vertex.h
[詳解]
1
7#pragma once
8
14struct Vertex
15{
16 DirectX::XMFLOAT3 Position = {};
17 DirectX::XMFLOAT4 Color = {};
18 DirectX::XMFLOAT3 Normal = {};
19 DirectX::XMFLOAT2 TexCoord = {};
20
22 Vertex() {}
23
30 Vertex(float x, float y, float z) {
31 Position.x = x;
32 Position.y = y;
33 Position.z = z;
34 }
35};
DirectX::XMFLOAT2 TexCoord
UV テクスチャ座標
Definition vertex.h:19
Vertex(float x, float y, float z)
XYZ 座標を指定するコンストラクタ
Definition vertex.h:30
DirectX::XMFLOAT3 Normal
法線ベクトル
Definition vertex.h:18
DirectX::XMFLOAT3 Position
ワールド座標(XYZ)
Definition vertex.h:16
Vertex()
デフォルトコンストラクタ
Definition vertex.h:22
DirectX::XMFLOAT4 Color
頂点カラー(RGBA)
Definition vertex.h:17