mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 00:24:40 +00:00
Hardware Skinning Support
- Supports GL, D3D9 & D3D11 - Extends vertex formats & shadergen to support blend indices and weights - Adds basic support for using 4x3 matrices for shader constants - Supports software fallback
This commit is contained in:
parent
507c239a87
commit
3496c549b5
72 changed files with 2533 additions and 1327 deletions
|
|
@ -48,6 +48,7 @@ enum GFXBufferType
|
|||
///< allowed.
|
||||
GFXBufferTypeVolatile, ///< Volatile vertex or index buffers are meant for vertices or indices that are essentially
|
||||
///< only used once. They can be resized without any performance penalty.
|
||||
|
||||
GFXBufferTypeImmutable, ///< Immutable buffers must specify the data when creating the buffer. Cannot be modified.
|
||||
|
||||
GFXBufferType_COUNT ///< Number of buffer types.
|
||||
|
|
@ -581,7 +582,9 @@ enum GFXShaderConstType
|
|||
GFXSCT_Float4,
|
||||
// Matrices
|
||||
GFXSCT_Float2x2,
|
||||
GFXSCT_Float3x3,
|
||||
GFXSCT_Float3x3,
|
||||
GFXSCT_Float3x4,
|
||||
GFXSCT_Float4x3,
|
||||
GFXSCT_Float4x4,
|
||||
// Scalar
|
||||
GFXSCT_Int,
|
||||
|
|
@ -621,6 +624,9 @@ enum GFXDeclType
|
|||
/// @see GFXVertexColor
|
||||
GFXDeclType_Color,
|
||||
|
||||
/// Four-component, packed, unsigned bytes ranged 0-255
|
||||
GFXDeclType_UByte4,
|
||||
|
||||
/// The count of total GFXDeclTypes.
|
||||
GFXDeclType_COUNT,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue