Blender Git Commit Log

Git Commits -> Revision 81bd49d

Revision 81bd49d by Jarrett Johnson (master)
November 1, 2021, 11:10 (GMT)
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

Commit Details:

Full Hash: 81bd49d4fea41f6e569f3778724b33f15e95f853
Parent Commit: 894096a
Committed By: Clément Foucault
Lines Changed: +67, -2

2 Modified Paths:

/source/blender/draw/engines/basic/basic_engine.c (+60, -2) (Diff)
/source/blender/draw/engines/basic/shaders/depth_vert.glsl (+7, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021