@deck.gl/arcgis 9.0.0-alpha.5 → 9.0.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@deck.gl/arcgis",
3
3
  "description": "Use deck.gl as a custom ArcGIS API for JavaScript layer",
4
4
  "license": "MIT",
5
- "version": "9.0.0-alpha.5",
5
+ "version": "9.0.0-alpha.7",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
@@ -32,12 +32,12 @@
32
32
  "peerDependencies": {
33
33
  "@arcgis/core": "^4.0.0",
34
34
  "@deck.gl/core": "^9.0.0-alpha",
35
- "@luma.gl/core": "9.0.0-alpha.42",
36
- "@luma.gl/engine": "9.0.0-alpha.42"
35
+ "@luma.gl/core": "9.0.0-alpha.53",
36
+ "@luma.gl/engine": "9.0.0-alpha.53"
37
37
  },
38
38
  "dependencies": {
39
39
  "@babel/runtime": "^7.0.0",
40
40
  "esri-loader": "^3.3.0"
41
41
  },
42
- "gitHead": "683e985b1b91160d7930b746bbd195fc1405a687"
42
+ "gitHead": "de061268077ab74e163792162efbc07be95d10f5"
43
43
  }
package/src/commons.ts CHANGED
@@ -12,23 +12,26 @@ export function initializeResources(device: Device) {
12
12
  this.buffer = device.createBuffer(new Int8Array([-1, -1, 1, -1, -1, 1, 1, 1]));
13
13
 
14
14
  this.model = new Model(device, {
15
- vs: `
16
- attribute vec2 a_pos;
17
- varying vec2 v_texcoord;
18
- void main(void) {
19
- gl_Position = vec4(a_pos, 0.0, 1.0);
20
- v_texcoord = (a_pos + 1.0) / 2.0;
21
- }
15
+ vs: `\
16
+ #version 300 es
17
+ in vec2 a_pos;
18
+ out vec2 v_texcoord;
19
+ void main(void) {
20
+ gl_Position = vec4(a_pos, 0.0, 1.0);
21
+ v_texcoord = (a_pos + 1.0) / 2.0;
22
+ }
22
23
  `,
23
- fs: `
24
- precision mediump float;
25
- uniform sampler2D u_texture;
26
- varying vec2 v_texcoord;
27
- void main(void) {
28
- vec4 rgba = texture2D(u_texture, v_texcoord);
29
- rgba.rgb *= rgba.a;
30
- gl_FragColor = rgba;
31
- }
24
+ fs: `\
25
+ #version 300 es
26
+ precision mediump float;
27
+ uniform sampler2D u_texture;
28
+ in vec2 v_texcoord;
29
+ out vec4 fragColor;
30
+ void main(void) {
31
+ vec4 rgba = texture(u_texture, v_texcoord);
32
+ rgba.rgb *= rgba.a;
33
+ fragColor = rgba;
34
+ }
32
35
  `,
33
36
  attributes: {
34
37
  // eslint-disable-next-line camelcase