Webgl points renderer / fix hit detection
Due to the fact that the points renderer does not know for sure which attributes will be used for rendering, it is now mandatory to provide both vertex/fragment shaders for rendering AND hit detection. The hit detection shaders should expect having an `a_hitColor` that they should return to allow matching the feature uid. This will be all one eventually by shader builders under the hood.
This commit is contained in:
@@ -14,7 +14,7 @@ const worker = self;
|
||||
worker.onmessage = event => {
|
||||
const received = event.data;
|
||||
if (received.type === WebGLWorkerMessageType.GENERATE_BUFFERS) {
|
||||
// This is specific to point features
|
||||
// This is specific to point features (x, y, index)
|
||||
const baseVertexAttrsCount = 3;
|
||||
const baseInstructionsCount = 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user