Problem with VertexPositionNormalTexture and BasicEffect


I try render quad with texture. I dont understand why it dont work and i get error

An error occurred while preparing to draw. This is probably because the current vertex declaration does not include all the elements required by the current vertex shader. The current vertex declaration includes these elements: SV_Position0, NORMAL0, TEXCOORD0.”


basic effect wants VertexPositionColorTexture .

Scroll down in this post for a couple examples, they are basically copy paste.

1 Like

Make sure effect.vertexColorEnabled is false.

…Or add Color to your vertex declaration.

1 Like