~cpp position : 점의 위치, 가장 중요한 정보이다. RHW : Reciprocal of the homogenous W coordinate Blending weights : 블랜딩 매트릭스 Vertex normal Vertex point size : 버텍스의 크기 (포인트스프라이트에서 사용한다.) Diffuse color Specular color Texture coordinates
~cpp
#define CUSTOM_VERTEX_FVF D3DFVF_XYZ
struct CustomVertex
{
float x;
float y;
float z;
};
~cpp
#define CUSTOM_VERTEX_FVF D3DFVF_XYZ | D3DFVF_RHW
struct CustomVertex
{
float x, y, z;
float rhw;
};
~cpp
#define CUSTOM_VERTEX_FVF D3DFVF_XYZ | D3DFVF_NORMAL
struct CustomVertex
{
float x, y, z;
float nx, ny, nz;
};
이 노말 좌표를 사용하면 RHW는 사용할 수 없다. (둘은 함께 사용할 수 없다는 뜻입니다.)~cpp
#define CUSTOM_VERTEX_FVF D3DFVF_XYZ | D3DFVF_RHW | D3DFVF_DIFFUSE
struct CustomVertex
{
float x, y, z;
float rhw;
D3DCOLOR diffuse;
};