@luma.gl/engine 9.0.0-alpha.39 → 9.0.0-alpha.40
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/LICENSE +2 -1
- package/dist/animation/timeline.d.ts.map +1 -1
- package/dist/animation/timeline.js.map +1 -1
- package/dist/animation-loop/animation-loop.d.ts.map +1 -1
- package/dist/animation-loop/animation-loop.js.map +1 -1
- package/dist/dist.dev.js +7 -0
- package/dist/index.cjs +7 -0
- package/dist/model/model.d.ts.map +1 -1
- package/dist/model/model.js +7 -0
- package/dist/model/model.js.map +1 -1
- package/dist/transform/transform.d.ts.map +1 -1
- package/dist/transform/transform.js.map +1 -1
- package/dist.min.js +35 -35
- package/package.json +5 -5
- package/src/animation/timeline.ts +1 -0
- package/src/animation-loop/animation-loop.ts +1 -0
- package/src/model/model.ts +12 -0
- package/src/transform/transform.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luma.gl/engine",
|
|
3
|
-
"version": "9.0.0-alpha.
|
|
3
|
+
"version": "9.0.0-alpha.40",
|
|
4
4
|
"description": "WebGL2 Components for High Performance Rendering and Computation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
43
|
-
"@luma.gl/constants": "9.0.0-alpha.
|
|
44
|
-
"@luma.gl/core": "9.0.0-alpha.
|
|
45
|
-
"@luma.gl/shadertools": "9.0.0-alpha.
|
|
43
|
+
"@luma.gl/constants": "9.0.0-alpha.40",
|
|
44
|
+
"@luma.gl/core": "9.0.0-alpha.40",
|
|
45
|
+
"@luma.gl/shadertools": "9.0.0-alpha.40",
|
|
46
46
|
"@math.gl/core": "^4.0.0",
|
|
47
47
|
"@probe.gl/log": "^4.0.2",
|
|
48
48
|
"@probe.gl/stats": "^4.0.2"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "5a6f2bc7a4d24a65b74ae905844ad5bfc36c5645"
|
|
51
51
|
}
|
package/src/model/model.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// luma.gl, MIT license
|
|
2
|
+
// Copyright (c) vis.gl contributors
|
|
2
3
|
|
|
3
4
|
import type {
|
|
4
5
|
TypedArray,
|
|
@@ -344,7 +345,18 @@ export class Model {
|
|
|
344
345
|
*/
|
|
345
346
|
setShaderModuleProps(props: Record<string, any>): void {
|
|
346
347
|
const uniforms = this._getModuleUniforms(props);
|
|
348
|
+
|
|
349
|
+
// Extract textures & framebuffers set by the modules
|
|
350
|
+
// TODO better way to extract bindings
|
|
351
|
+
const keys = Object.keys(uniforms).filter(k => uniforms[k].constructor.name.includes('WEBGL'));
|
|
352
|
+
const bindings: Record<string, Binding> = {};
|
|
353
|
+
for (const k of keys) {
|
|
354
|
+
bindings[k] = uniforms[k];
|
|
355
|
+
delete uniforms[k];
|
|
356
|
+
}
|
|
357
|
+
|
|
347
358
|
Object.assign(this.uniforms, uniforms);
|
|
359
|
+
Object.assign(this.bindings, bindings);
|
|
348
360
|
}
|
|
349
361
|
|
|
350
362
|
/**
|