fix(heatmap): setValue

This commit is contained in:
thinkinggis 2019-05-07 19:52:33 +08:00
parent b39f6c297a
commit 208ed7f613
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ function copyPass(layer) {
const style = layer.get('styleOptions');
const material = new HeatmapColorizeMaterial({
u_rampColors: layer.rampColors,
u_opacity: style.opacity
u_opacity: style.opacity || 1.0
}, {});
const copyPass = new ShaderPass(material, 'u_texture');
return copyPass;