Fixed occlusion culling buffer getting overwritten in larger scenes

This commit is contained in:
Rudolph Bester 2024-12-05 18:54:13 +02:00
parent 1f47e4c4e3
commit 329d25b1fa

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;