diff options
author | Jarrett Johnson <jarrett.johnson> | 2021-11-01 13:24:50 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2021-11-01 14:10:34 +0300 |
commit | 81bd49d4fea41f6e569f3778724b33f15e95f853 (patch) | |
tree | 75ef3b17c7b0a602e7218b87076f98588ecb2930 /intern | |
parent | 894096a5287f7d25a02338dd5188b67cb9328851 (diff) |
Pointcloud selection support
This patch adds support for selecting pointclouds.
Since pointclouds were not properly drawn to the selection buffer (as diagonsed by output from `glReadPixels` and Renderdoc), they were not able to be selectable by depth picking or occlusion queries. In `basic_engine`, objects were rendered with a shader which draws to a depth buffer but only assumes a single position vertex attribute. Pointclouds, though, require at least another vertex attribute `pos_inst` which provides the instance offsets. Thus, this patch adds another shader variant for pointclouds which supports these two attributes and renders the points appropriately.
{F11652666}
Addresses T92415
Reviewed By: fclem
Differential Revision: https://developer.blender.org/D13059
Diffstat (limited to 'intern')
0 files changed, 0 insertions, 0 deletions