From 351ca5866b0eaac45103021f51b5b92f7eefd4d6 Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Wed, 22 Dec 2021 10:48:25 +0000 Subject: [PATCH] update docs to include u_opacity --- src/ol/renderer/webgl/PointsLayer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ol/renderer/webgl/PointsLayer.js b/src/ol/renderer/webgl/PointsLayer.js index a122651c5a..d66b2b4601 100644 --- a/src/ol/renderer/webgl/PointsLayer.js +++ b/src/ol/renderer/webgl/PointsLayer.js @@ -55,7 +55,7 @@ import {listen, unlistenByKey} from '../../events.js'; * @property {string} [hitVertexShader] Vertex shader source for hit detection rendering. * @property {string} [hitFragmentShader] Fragment shader source for hit detection rendering. * @property {Object} [uniforms] Uniform definitions for the post process steps - * Please note that `u_texture` is reserved for the main texture slot. + * Please note that `u_texture` is reserved for the main texture slot and `u_opacity` is reserved for the layer opacity. * @property {Array} [postProcesses] Post-processes definitions */ @@ -99,6 +99,7 @@ import {listen, unlistenByKey} from '../../events.js'; * the final color that will have to be output for hit detection to work. * * The following uniform is used for the main texture: `u_texture`. + * The following uniform is used for the layer opacity: `u_opacity`. * * Please note that the main shader output should have premultiplied alpha, otherwise visual anomalies may occur. *