Showing the changes to libraries/render-utils/src/AnimDebugDraw.cpp (1 of 1 file). Show all
Unified · Split
| @@ -392,18 +392,20 @@ void AnimDebugDraw::update() { · 391 unmodified lines | ||
| 392 | 392 | |
| 393 | 393 | assert(numVerts == (v - verts)); |
| 394 | 394 | |
| 395 | − // This render item bound shit is broken. | |
| 396 | − // Fuck that, use the big ass bound instead. | |
| 395 | + // The RenderItem culling is not working correctly | |
| 396 | + // Workaround this issue by using the default constructed | |
| 397 | + // item._bound which is a 16 km cube. | |
| 397 | 398 | /* |
| 398 | 399 | render::Item::Bound theBound; |
| 399 | 400 | for (int i = 0; i < numVerts; i++) { |
| 400 | 401 | theBound += verts[i].pos; |
| 401 | 402 | } |
| 403 | + data._bound = theBound; | |
| 402 | 404 | */ |
| 403 | 405 | |
| 404 | 406 | data._isVisible = (numVerts > 0); |
| 405 | 407 | |
| 406 | − //data._bound = theBound; | |
| 408 | + | |
| 407 | 409 | data._indexBuffer->resize(sizeof(uint16_t) * numVerts); |
| 408 | 410 | uint16_t* indices = (uint16_t*)data._indexBuffer->editData(); |
| 409 | 411 | for (int i = 0; i < numVerts; i++) { |