Page MenuHome

Fix: Draw: Incorrect culling in the new Draw Manager
ClosedPublic

Authored by Miguel Pozo (pragma37) on Mon, Jan 16, 12:46 PM.

Details

Summary

ViewCullingData::corners (vec4) was casted to a BoundingBox (vec3), so the frustum corners were uploaded in the wrong format to the GPU.

Now the ViewCullingData::corners are used directly without casting, since the BoundBox API is not really needed.

Diff Detail

Repository
rB Blender
Branch
master
Build Status
Buildable 25376
Build 25376: arc lint + arc unit

Event Timeline

Miguel Pozo (pragma37) requested review of this revision.Mon, Jan 16, 12:46 PM
Miguel Pozo (pragma37) created this revision.
source/blender/draw/intern/draw_view.cc
44

Same here.

99

Prefer using blender::Span<float4> corners(culling_[view_id].corners, ARRAY_SIZE(culling_[view_id].corners));. This adds bound checks on access and allow to iterate over its data.

Miguel Pozo (pragma37) marked 2 inline comments as done.Mon, Jan 16, 6:33 PM
This revision is now accepted and ready to land.Mon, Jan 16, 6:35 PM