in D3DIM:
what is the diffrents between D3DVERTEX - D3DLVERTEX - D3DTLVERTEX
?
------------------------------- Goblineye Entertainment------------------------------
D3DVERTEX holds 3D coordinate and normal
D3DLVERTEX holds 3D coordinate and color from light
D3DTLVERTEX holds 2D coordinate and color from light
The above is simplified, there are other values that can be added, such as texture coordinate, vertexcolor etc.
The different formats tell DX what it shall do with it to produce the final information before rendering the primitives. With TL you do the lighting and transformation yourself, with L you do the lighting while DX does the transform, and with D3DVERTEX DX lights and transforms the vertex for you.
D3DLVERTEX holds 3D coordinate and color from light
D3DTLVERTEX holds 2D coordinate and color from light
The above is simplified, there are other values that can be added, such as texture coordinate, vertexcolor etc.
The different formats tell DX what it shall do with it to produce the final information before rendering the primitives. With TL you do the lighting and transformation yourself, with L you do the lighting while DX does the transform, and with D3DVERTEX DX lights and transforms the vertex for you.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement