Use a function to get the value of the gradient
This commit is contained in:
1 parent
6d092cf1a6
commit
5a1921d7bd
1 file changed
+3
-1
@@ -294,7 +294,9 @@ class Heatmap extends VectorLayer {
|
||||
gl_FragColor.rgb *= gl_FragColor.a;
|
||||
}`,
|
||||
uniforms: {
|
||||
u_gradientTexture: this.gradient_
|
||||
u_gradientTexture: function() {
|
||||
return this.gradient_;
|
||||
}.bind(this)
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user