DirectX 10 problem with normals in C#

Started by
9 comments, last by XBuilder 10 years, 7 months ago

Hello LyGuy,

thanks for your help! I have created a new test WinForms-Application and have found the error (swapped parameters is second InputElement 0, 12 should be 12, 0):


var elements = new[] {
  new InputElement(Helper3D.POSITION_ELEMENT_NAME, 0, Format.R32G32B32_Float, 0, 0),
  new InputElement(Helper3D.NORMAL_ELEMENT_NAME, 0, Format.R32G32B32_Float, 12, 0)
};

It's works nice now! Thank you for your hints!

This topic is closed to new replies.

Advertisement