@luma.gl/engine 9.0.12 → 9.0.15

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 CHANGED
@@ -6889,8 +6889,11 @@ void main() {
6889
6889
  continue;
6890
6890
  }
6891
6891
  const oldUniforms = this.moduleUniforms[moduleName];
6892
- const uniforms = module.getUniforms?.(moduleProps, this.moduleUniforms[moduleName]) || moduleProps;
6892
+ const oldBindings = this.moduleBindings[moduleName];
6893
+ const uniformsAndBindings = module.getUniforms?.(moduleProps, this.moduleUniforms[moduleName]) || moduleProps;
6894
+ const { uniforms, bindings } = (0, import_core6.splitUniformsAndBindings)(uniformsAndBindings);
6893
6895
  this.moduleUniforms[moduleName] = { ...oldUniforms, ...uniforms };
6896
+ this.moduleBindings[moduleName] = { ...oldBindings, ...bindings };
6894
6897
  }
6895
6898
  }
6896
6899
  /** Merges all bindings for the shader (from the various modules) */
@@ -7417,6 +7420,7 @@ void main() {
7417
7420
  /** Update uniform buffers from the model's shader inputs */
7418
7421
  updateShaderInputs() {
7419
7422
  this._uniformStore.setUniforms(this.shaderInputs.getUniformValues());
7423
+ this.setBindings(this.shaderInputs.getBindings());
7420
7424
  this.setNeedsRedraw("shaderInputs");
7421
7425
  }
7422
7426
  /**