@luma.gl/engine 9.0.14 → 9.0.16
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/dist/dist.dev.js +1040 -277
- package/dist/dist.min.js +25 -25
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +2 -2
- package/dist/model/model.d.ts.map +1 -1
- package/dist/model/model.js +1 -0
- package/dist/shader-inputs.d.ts.map +1 -1
- package/dist/shader-inputs.js +5 -6
- package/package.json +3 -3
- package/src/model/model.ts +1 -0
- package/src/shader-inputs.ts +6 -7
package/dist/index.cjs
CHANGED
|
@@ -781,8 +781,11 @@ var ShaderInputs = class {
|
|
|
781
781
|
continue;
|
|
782
782
|
}
|
|
783
783
|
const oldUniforms = this.moduleUniforms[moduleName];
|
|
784
|
-
const
|
|
784
|
+
const oldBindings = this.moduleBindings[moduleName];
|
|
785
|
+
const uniformsAndBindings = ((_a = module2.getUniforms) == null ? void 0 : _a.call(module2, moduleProps, this.moduleUniforms[moduleName])) || moduleProps;
|
|
786
|
+
const { uniforms, bindings } = (0, import_core5.splitUniformsAndBindings)(uniformsAndBindings);
|
|
785
787
|
this.moduleUniforms[moduleName] = { ...oldUniforms, ...uniforms };
|
|
788
|
+
this.moduleBindings[moduleName] = { ...oldBindings, ...bindings };
|
|
786
789
|
}
|
|
787
790
|
}
|
|
788
791
|
/** Merges all bindings for the shader (from the various modules) */
|
|
@@ -1305,6 +1308,7 @@ var _Model = class {
|
|
|
1305
1308
|
/** Update uniform buffers from the model's shader inputs */
|
|
1306
1309
|
updateShaderInputs() {
|
|
1307
1310
|
this._uniformStore.setUniforms(this.shaderInputs.getUniformValues());
|
|
1311
|
+
this.setBindings(this.shaderInputs.getBindings());
|
|
1308
1312
|
this.setNeedsRedraw("shaderInputs");
|
|
1309
1313
|
}
|
|
1310
1314
|
/**
|