xna lighting on a cube

Started by
0 comments, last by Evil Steve 15 years, 9 months ago
i am having a little problem with xna lighting on a cube. i have setup my vertex buffer and index buffer. my vertex buffer contains position, color, and normal. however, the normal should point in different directions depending on which face is using the vertex. is there a way to specify a normal per triangle instead of per vertex ?
Advertisement
Quote:Original post by ncsu121978
i am having a little problem with xna lighting on a cube.
i have setup my vertex buffer and index buffer. my vertex buffer contains position, color, and normal. however, the normal should point in different directions depending on which face is using the vertex. is there a way to specify a normal per triangle instead of per vertex ?
Nope. You'll need to duplicate the vertices for each face.

This topic is closed to new replies.

Advertisement