I'm tryingto learn directX programming. Looking at different tutorials there is something about Vertices that i find a bit counfusing.
I know that directX uses vertices with four elements (x,y,z,w). I saw many tutorials ( example http://msdn.microsoft.com/en-us/library/ff729721(v=VS.85).aspx ) passing XMFLOAT3 as vertices positions omitting the w component. How this works ? Assuming that passin XMFLOAT3 or XMFLOAT4 doesn't change DirectX behaviour (true? ) should i set the w to 1 in the vertex shader or DirectX assumes it to be 1 by default?