Merge pull request #100060 from Rudolph-B/Issue-100032

Fixed occlusion culling buffer getting overwritten in larger scenes
This commit is contained in:
Thaddeus Crews 2024-12-05 14:12:17 -06:00
commit 4d0ce3ce76
No known key found for this signature in database
GPG Key ID: 62181B86FE9E5D84

View File

@ -366,7 +366,7 @@ void RaycastOcclusionCull::Scenario::_transform_vertices_thread(uint32_t p_threa
}
void RaycastOcclusionCull::Scenario::_transform_vertices_range(const Vector3 *p_read, float *p_write, const Transform3D &p_xform, int p_from, int p_to) {
float *floats_w = p_write;
float *floats_w = p_write + 3 * p_from;
for (int i = p_from; i < p_to; i++) {
const Vector3 p = p_xform.xform(p_read[i]);
floats_w[0] = p.x;