mirror of https://gitee.com/antv-l7/antv-l7
fix(core): shaderpass
This commit is contained in:
parent
1ca12ff2f9
commit
07672fe219
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@antv/l7",
|
||||
"version": "1.1.5",
|
||||
"version": "1.1.6",
|
||||
"description": "Large-scale WebGL-powered Geospatial Data Visualization",
|
||||
"main": "build/l7.js",
|
||||
"browser": "build/l7.js",
|
||||
|
|
|
@ -11,7 +11,7 @@ export default class ShaderPass extends RenderPass {
|
|||
}
|
||||
|
||||
_init(cfg) {
|
||||
super(cfg);
|
||||
super._init(cfg);
|
||||
this.camera = new THREE.OrthographicCamera(-this.size.width / 2, this.size.width / 2, this.size.height / 2, -this.size.height / 2, 0, 100);
|
||||
this.material = new THREE.ShaderMaterial({
|
||||
vertexShader: this.vertexShader,
|
||||
|
|
Loading…
Reference in New Issue