Socket
Socket
Sign inDemoInstall

@luma.gl/engine

Package Overview
Dependencies
Maintainers
0
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@luma.gl/engine - npm Package Compare versions

Comparing version 9.0.14 to 9.0.15

1

dist/model/model.js

@@ -381,2 +381,3 @@ // luma.gl

this._uniformStore.setUniforms(this.shaderInputs.getUniformValues());
this.setBindings(this.shaderInputs.getBindings());
// TODO - this is already tracked through buffer/texture update times?

@@ -383,0 +384,0 @@ this.setNeedsRedraw('shaderInputs');

11

dist/shader-inputs.js
// luma.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors
import { log } from '@luma.gl/core';
import { log, splitUniformsAndBindings } from '@luma.gl/core';
// import type {ShaderUniformType, UniformValue, UniformFormat, UniformInfoDevice, Texture, Sampler} from '@luma.gl/core';

@@ -66,10 +66,9 @@ import { _resolveModules } from '@luma.gl/shadertools';

const oldUniforms = this.moduleUniforms[moduleName];
const uniforms = module.getUniforms?.(moduleProps, this.moduleUniforms[moduleName]) || moduleProps;
// console.error(uniforms)
const oldBindings = this.moduleBindings[moduleName];
const uniformsAndBindings = module.getUniforms?.(moduleProps, this.moduleUniforms[moduleName]) || moduleProps;
const { uniforms, bindings } = splitUniformsAndBindings(uniformsAndBindings);
this.moduleUniforms[moduleName] = { ...oldUniforms, ...uniforms };
this.moduleBindings[moduleName] = { ...oldBindings, ...bindings };
// this.moduleUniformsChanged ||= moduleName;
// console.log(`setProps(${String(moduleName)}`, moduleName, this.moduleUniforms[moduleName])
// TODO - Get Module bindings
// const bindings = module.getBindings?.(moduleProps);
// this.moduleUniforms[moduleName] = bindings;
}

@@ -76,0 +75,0 @@ }

{
"name": "@luma.gl/engine",
"version": "9.0.14",
"version": "9.0.15",
"description": "3D Engine Components for luma.gl",

@@ -46,3 +46,3 @@ "type": "module",

"dependencies": {
"@luma.gl/shadertools": "9.0.14",
"@luma.gl/shadertools": "9.0.15",
"@math.gl/core": "^4.0.0",

@@ -52,3 +52,3 @@ "@probe.gl/log": "^4.0.2",

},
"gitHead": "0b466762e8255ed11b00c6bc518049d3b54c4009"
"gitHead": "48b6e702cf6ad35748cfa88ffd249c17861ff2af"
}

@@ -508,2 +508,3 @@ // luma.gl

this._uniformStore.setUniforms(this.shaderInputs.getUniformValues());
this.setBindings(this.shaderInputs.getBindings());
// TODO - this is already tracked through buffer/texture update times?

@@ -510,0 +511,0 @@ this.setNeedsRedraw('shaderInputs');

@@ -6,3 +6,3 @@ // luma.gl

import type {UniformValue, Texture, Sampler} from '@luma.gl/core';
import {log} from '@luma.gl/core';
import {log, splitUniformsAndBindings} from '@luma.gl/core';
// import type {ShaderUniformType, UniformValue, UniformFormat, UniformInfoDevice, Texture, Sampler} from '@luma.gl/core';

@@ -108,13 +108,12 @@ import {_resolveModules, ShaderModuleInstance} from '@luma.gl/shadertools';

const oldUniforms = this.moduleUniforms[moduleName];
const uniforms =
const oldBindings = this.moduleBindings[moduleName];
const uniformsAndBindings =
module.getUniforms?.(moduleProps, this.moduleUniforms[moduleName]) || (moduleProps as any);
// console.error(uniforms)
const {uniforms, bindings} = splitUniformsAndBindings(uniformsAndBindings);
this.moduleUniforms[moduleName] = {...oldUniforms, ...uniforms};
this.moduleBindings[moduleName] = {...oldBindings, ...bindings};
// this.moduleUniformsChanged ||= moduleName;
// console.log(`setProps(${String(moduleName)}`, moduleName, this.moduleUniforms[moduleName])
// TODO - Get Module bindings
// const bindings = module.getBindings?.(moduleProps);
// this.moduleUniforms[moduleName] = bindings;
}

@@ -121,0 +120,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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