Updated compiled shmodel file for racoon with fixed rig node order and build format
Fixed bug when building histogram for vertex weights
This commit is contained in:
parent
b36145fa39
commit
6872bae151
|
@ -0,0 +1,8 @@
|
||||||
|
- VertexShader: 47911992
|
||||||
|
FragmentShader: 46377769
|
||||||
|
SubPass: G-Buffer Write
|
||||||
|
Properties:
|
||||||
|
data.color: {x: 1, y: 1, z: 1, w: 1}
|
||||||
|
data.textureIndex: 58303057
|
||||||
|
data.alpha: 0
|
||||||
|
data.beta: {x: 1, y: 1, z: 1}
|
|
@ -0,0 +1,3 @@
|
||||||
|
Name: AnimatedBag
|
||||||
|
ID: 117923942
|
||||||
|
Type: 7
|
Binary file not shown.
|
@ -176,8 +176,8 @@ namespace SHADE
|
||||||
std::queue<std::pair<SHRigNode*, NodeTemp*>> nodeQueue;
|
std::queue<std::pair<SHRigNode*, NodeTemp*>> nodeQueue;
|
||||||
nodeQueue.emplace(std::make_pair(nodePool, dst));
|
nodeQueue.emplace(std::make_pair(nodePool, dst));
|
||||||
|
|
||||||
auto depthPtr = nodePool + 1;
|
SHRigNode* depthPtr = nodePool + 1;
|
||||||
auto depthTempPtr = dst + 1;
|
NodeTemp* depthTempPtr = dst + 1;
|
||||||
|
|
||||||
while(!nodeQueue.empty())
|
while(!nodeQueue.empty())
|
||||||
{
|
{
|
||||||
|
@ -247,6 +247,11 @@ namespace SHADE
|
||||||
data.VertexBoneIndices.resize(header.vertexCount);
|
data.VertexBoneIndices.resize(header.vertexCount);
|
||||||
data.VertexBoneWeights.resize(header.vertexCount);
|
data.VertexBoneWeights.resize(header.vertexCount);
|
||||||
|
|
||||||
|
//for (auto& weight : data.VertexBoneWeights)
|
||||||
|
//{
|
||||||
|
// weight = { -0.1f };
|
||||||
|
//}
|
||||||
|
|
||||||
for (uint32_t boneIndex{0}; boneIndex < bones.size(); ++boneIndex)
|
for (uint32_t boneIndex{0}; boneIndex < bones.size(); ++boneIndex)
|
||||||
{
|
{
|
||||||
auto const& bone = bones[boneIndex];
|
auto const& bone = bones[boneIndex];
|
||||||
|
@ -261,6 +266,7 @@ namespace SHADE
|
||||||
{
|
{
|
||||||
boneIndices[j] = boneIndex;
|
boneIndices[j] = boneIndex;
|
||||||
boneWeight[j] = weight.weight;
|
boneWeight[j] = weight.weight;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue