@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 +5 -1
- package/dist/dist.min.js +17 -17
- 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.min.js +0 -25
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
|
|
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
|
/**
|