Fix incorrect format and buffer used for bone weights.

This commit is contained in:
bruvzg 2022-01-05 08:44:59 +02:00
parent 236f4681c9
commit 679fe92bb3
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
2 changed files with 2 additions and 2 deletions

View file

@ -281,7 +281,7 @@ RendererCanvasRender::PolygonID RendererCanvasRenderRD::request_polygon(const Ve
vd.stride = 0;
descriptions.write[4] = vd;
buffers.write[4] = storage->mesh_get_default_rd_buffer(RendererStorageRD::DEFAULT_RD_BUFFER_BONES);
buffers.write[4] = storage->mesh_get_default_rd_buffer(RendererStorageRD::DEFAULT_RD_BUFFER_WEIGHTS);
}
//check that everything is as it should be

View file

@ -3878,7 +3878,7 @@ void RendererStorageRD::_mesh_surface_generate_version_for_input_mask(Mesh::Surf
} break;
case RS::ARRAY_WEIGHTS: {
//assumed weights too
vd.format = RD::DATA_FORMAT_R32G32B32A32_UINT;
vd.format = RD::DATA_FORMAT_R32G32B32A32_SFLOAT;
} break;
}
} else {