|
 | Lighting basics | |  |
| Poster | : chkopo | | Posts | : 2 | | Country | : China | | City | : China |
| | | | Posted by chkopo on 13/08/2012 at 16:01:33
| | -position (sizeof(float) * 3)
-color (sizeof(float))
-normal (sizeof(float) * 3)
-texture (sizeof(float) * 2) => because it is actually the texture coodinate UV.
-position (sizeof(float) * 3) ->
new VertexElement( [ 0 ] , VertexElementFormat.Vector3, VertexElementUsage.Position, 0),
Warum hat hier Position [ 0 ] byte? | |
|
| | | | | | Poster | : Anonymous | | Posts | : | | Country | : | | City | : |
| | | | Posted by Anonymous on 04/09/2012 at 08:20:10
| | | Beim ersten Parameter geht es nicht um die Länge der übergebenen Daten, sondern um den Offset, d.h. wie viel Platz ist davor, bevor die eigentlichen Daten beginnen. | |
|
|
|
|
|
If you appreciate the amount of time I spend creating and updating these pages, feel free to donate -- any amount is welcome !
|
- Website design & DirectX code : Riemer Grootjans - ©2006 Riemer Grootjans
|
|