Use a function to get the value of the gradient
This commit is contained in:
@@ -294,7 +294,9 @@ class Heatmap extends VectorLayer {
|
|||||||
gl_FragColor.rgb *= gl_FragColor.a;
|
gl_FragColor.rgb *= gl_FragColor.a;
|
||||||
}`,
|
}`,
|
||||||
uniforms: {
|
uniforms: {
|
||||||
u_gradientTexture: this.gradient_
|
u_gradientTexture: function() {
|
||||||
|
return this.gradient_;
|
||||||
|
}.bind(this)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user