Blender Git Loki

Git Commits -> Revision a50f8b3

Revision a50f8b3 by Jarrett Johnson (master)
November 1, 2021, 10:25 (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: a50f8b3fd8e74d7cc0f2224f110c85493acee1cc
Parent Commit: 8379eef
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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021