VertexPositionNormalTexture
-
VertexPositionNormalTexture 구조체Programing/XNA 2008. 9. 9. 17:49
VertexPositionNormalTexture 구조체는 정점들의 내용을 저장하는데 사용된다. 정점의 내용으로는 정점의 위치, 정점의 법선, 텍스처의 좌표값을 가진다. public VertexPositionNormalTexture ( Vector3 position, Vector3 normal, Vector2 textureCoordinate ) 보통 private VertexPositionNormalTexture[] vertices; 와 같이 선언해서 vertices에 정점들을 담아서 사용하면 된다.