@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/index.cjs CHANGED
@@ -781,8 +781,11 @@ var ShaderInputs = class {
781
781
  continue;
782
782
  }
783
783
  const oldUniforms = this.moduleUniforms[moduleName];
784
- const uniforms = ((_a = module2.getUniforms) == null ? void 0 : _a.call(module2, moduleProps, this.moduleUniforms[moduleName])) || moduleProps;
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
  /**