Fix incorrect format and buffer used for bone weights.
This commit is contained in:
parent
236f4681c9
commit
679fe92bb3
@ -281,7 +281,7 @@ RendererCanvasRender::PolygonID RendererCanvasRenderRD::request_polygon(const Ve
|
|||||||
vd.stride = 0;
|
vd.stride = 0;
|
||||||
|
|
||||||
descriptions.write[4] = vd;
|
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
|
//check that everything is as it should be
|
||||||
|
@ -3878,7 +3878,7 @@ void RendererStorageRD::_mesh_surface_generate_version_for_input_mask(Mesh::Surf
|
|||||||
} break;
|
} break;
|
||||||
case RS::ARRAY_WEIGHTS: {
|
case RS::ARRAY_WEIGHTS: {
|
||||||
//assumed weights too
|
//assumed weights too
|
||||||
vd.format = RD::DATA_FORMAT_R32G32B32A32_UINT;
|
vd.format = RD::DATA_FORMAT_R32G32B32A32_SFLOAT;
|
||||||
} break;
|
} break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user