10/25/2023 0 Comments Doesn't support ubyte4n vertex dataI have been looking all over the internet but just can't find the solution.Īnd as requested, here the struct I use for the Vertex Buffer: I already tried int4, uint4, float4.ĭ3DVERTEXELEMENT9 CustomVertexFormats::VERTEX_POSITION_NORMAL_UV_BONE4_DECL_ARRAY = This problem might be caused due to the uint4 type on boneIDs : BLENDINDICES0 in the vs_input. and just use the blendindex, i dont see the mesh anymore posResult = mul(float4(pos,1.0f), gBones]) PosResult = mul(float4(pos,1.0f), gBones) OutputVS TransformVS(float3 pos : POSITION0,įloat4 posResult = float4(0.0f,0.0f,0.0f,0.0f) I am attempting to write my own game engine and am now at the point of implementing skinned meshes.įor testing purposes the gBones-Array only holds identity-matrices.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |