xna lighting on a cube
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 ?
Quote:Original post by ncsu121978Nope. You'll need to duplicate the vertices for each face.
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 ?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement