fix(core): shaderpass

This commit is contained in:
thinkinggis 2019-03-25 15:50:31 +08:00
parent 1ca12ff2f9
commit 07672fe219
2 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

@ -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,