mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-22 03:57:45 +00:00
Use the correct TransformView value if the model is skinned or not
This commit is contained in:
parent
88e64b859d
commit
e9c857a649
1 changed files with 12 additions and 7 deletions
|
@ -215,13 +215,18 @@ void GameRenderer::render(VkCommandBuffer commandBuffer, uint32_t imageIndex, Ca
|
|||
if (renderMaterial.type == MaterialType::Skin) {
|
||||
systemKeys.push_back(physis_shpk_crc("DecodeDepthBuffer_RAWZ"));
|
||||
}
|
||||
std::vector<uint32_t> sceneKeys = {
|
||||
physis_shpk_crc("TransformViewSkin"),
|
||||
physis_shpk_crc("GetAmbientLight_SH"),
|
||||
physis_shpk_crc("GetReflectColor_Texture"),
|
||||
physis_shpk_crc("GetAmbientOcclusion_None"),
|
||||
physis_shpk_crc("ApplyDitherClipOff"),
|
||||
};
|
||||
std::vector<uint32_t> sceneKeys;
|
||||
if (model.skinned) {
|
||||
sceneKeys.push_back(physis_shpk_crc("TransformViewSkin"));
|
||||
} else {
|
||||
sceneKeys.push_back(physis_shpk_crc("TransformViewRigid"));
|
||||
}
|
||||
|
||||
sceneKeys.push_back(physis_shpk_crc("GetAmbientLight_SH"));
|
||||
sceneKeys.push_back(physis_shpk_crc("GetReflectColor_Texture"));
|
||||
sceneKeys.push_back(physis_shpk_crc("GetAmbientOcclusion_None"));
|
||||
sceneKeys.push_back(physis_shpk_crc("ApplyDitherClipOff"));
|
||||
|
||||
std::vector<uint32_t> materialKeys;
|
||||
for (int j = 0; j < renderMaterial.shaderPackage.num_material_keys; j++) {
|
||||
auto id = renderMaterial.shaderPackage.material_keys[j].id;
|
||||
|
|
Loading…
Add table
Reference in a new issue