This code start from examples that you can find here:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=694235&SiteID=1
by "pRtkL xLr8r" and "i made this".

It show a textured cube rendered with BasicEffect (on left, with light) and
with Effect shader (on right, not light).
Not all faces are right textured.

Press keys:
Insert-Enter to toggle Full Screen/window mode;
arrows, PagUp, PagDown, Home, Fine to move;
Esc to exit.

To dowload the project:
http://www.tonigreco.it/_xna_/download.asp?name=Basic_and_EffectCube.zip

I hope it can help.

Annunci