Shader Builder / add option to generate hit detection shaders

This commit is contained in:
Olivier Guyot
2019-10-25 10:24:03 +02:00
parent a39f751981
commit d643951a74
4 changed files with 93 additions and 6 deletions

View File

@@ -147,6 +147,10 @@ class WebGLPointsLayerRenderer extends WebGLLayerRenderer {
options.hitVertexShader
);
if (this.getShaderCompileErrors()) {
throw new Error(this.getShaderCompileErrors());
}
const customAttributes = options.attributes ?
options.attributes.map(function(attribute) {
return {