Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

satellite-view

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

satellite-view - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

22

dist/satellite-view.js

@@ -11,4 +11,4 @@ function setParams(userParams) {

if (!context || !(context.gl instanceof WebGLRenderingContext)) {
throw "satellite-view: no valid WebGLRenderingContext!";
if (!context || !(context.gl instanceof WebGL2RenderingContext)) {
throw "satellite-view: no valid WebGL2RenderingContext!";
}

@@ -32,6 +32,9 @@

var vertexSrc = `attribute vec4 aVertexPosition;
var vertexSrc = `#version 300 es
in vec4 aVertexPosition;
uniform vec2 uMaxRay;
varying highp vec2 vRayParm;
out highp vec2 vRayParm;

@@ -121,3 +124,3 @@ void main(void) {

vec4 sampleLOD(sampler2D samplers[nLod], vec2 coords[nLod]) {
return ${args.buildSelector}texture2D(samplers[0], coords[0]);
return ${args.buildSelector}texture(samplers[0], coords[0]);
}

@@ -182,4 +185,5 @@

varying vec2 vRayParm;
in vec2 vRayParm;
uniform float uHnorm;
out vec4 pixColor;

@@ -205,7 +209,7 @@ void main(void) {

vec3 dithered = dither2x2(gl_FragCoord.xy, cosC * texelColor.rgb);
gl_FragColor = vec4(dithered.rgb, texelColor.a) * horizonTaper(gamma);
pixColor = vec4(dithered.rgb, texelColor.a) * horizonTaper(gamma);
}
`;
const header = `
const header = `#version 300 es
precision highp float;

@@ -244,3 +248,3 @@ precision highp sampler2D;

while (--n) selector += `inside(coords[${n}])
? texture2D(samplers[${n}], coords[${n}])
? texture(samplers[${n}], coords[${n}])
: `;

@@ -247,0 +251,0 @@ return selector;

{
"version": "2.1.0",
"version": "2.1.1",
"files": [

@@ -18,10 +18,10 @@ "dist"

"devDependencies": {
"@rollup/plugin-node-resolve": "^13.0.0",
"eslint": "^7.30.0",
"@rollup/plugin-node-resolve": "^13.0.6",
"eslint": "^8.3.0",
"eslint-config-globeletjs": "^0.0.6",
"rollup": "^2.52.7",
"rollup": "^2.60.2",
"tile-frame": "^1.1.0",
"tile-rack": "^0.2.1",
"tile-setter": "^0.0.9",
"yawgl": "^0.3.3"
"tile-setter": "^0.1.5",
"yawgl": "^0.4.0"
},

@@ -28,0 +28,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc