@luma.gl/engine 9.0.6 → 9.0.7
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 +106 -257
- package/dist/dist.min.js +10 -10
- package/dist/index.cjs +3 -6
- package/dist/index.cjs.map +2 -2
- package/dist/model/model.d.ts.map +1 -1
- package/dist/model/model.js +4 -6
- package/package.json +3 -3
- package/src/.DS_Store +0 -0
- package/src/model/model.ts +4 -6
- package/dist.min.js +0 -25
package/dist/index.cjs
CHANGED
|
@@ -1121,9 +1121,7 @@ var _Model = class {
|
|
|
1121
1121
|
this.setIndexBuffer(props.indexBuffer);
|
|
1122
1122
|
}
|
|
1123
1123
|
if (props.attributes) {
|
|
1124
|
-
this.setAttributes(props.attributes
|
|
1125
|
-
disableWarnings: props.disableWarnings
|
|
1126
|
-
});
|
|
1124
|
+
this.setAttributes(props.attributes);
|
|
1127
1125
|
}
|
|
1128
1126
|
if (props.constantAttributes) {
|
|
1129
1127
|
this.setConstantAttributes(props.constantAttributes);
|
|
@@ -1135,7 +1133,6 @@ var _Model = class {
|
|
|
1135
1133
|
this.setUniforms(props.uniforms);
|
|
1136
1134
|
}
|
|
1137
1135
|
if (props.moduleSettings) {
|
|
1138
|
-
import_core10.log.warn("Model.props.moduleSettings is deprecated. Use Model.shaderInputs.setProps()")();
|
|
1139
1136
|
this.updateModuleSettings(props.moduleSettings);
|
|
1140
1137
|
}
|
|
1141
1138
|
if (props.transformFeedback) {
|
|
@@ -1341,7 +1338,7 @@ var _Model = class {
|
|
|
1341
1338
|
set = true;
|
|
1342
1339
|
}
|
|
1343
1340
|
}
|
|
1344
|
-
if (!set && !((options == null ? void 0 : options.disableWarnings)
|
|
1341
|
+
if (!set && !((options == null ? void 0 : options.disableWarnings) ?? this.props.disableWarnings)) {
|
|
1345
1342
|
import_core10.log.warn(`Model(${this.id}): Ignoring buffer "${buffer.id}" for unknown attribute "${bufferName}"`)();
|
|
1346
1343
|
}
|
|
1347
1344
|
}
|
|
@@ -1360,7 +1357,7 @@ var _Model = class {
|
|
|
1360
1357
|
const attributeInfo = this._attributeInfos[attributeName];
|
|
1361
1358
|
if (attributeInfo) {
|
|
1362
1359
|
this.vertexArray.setConstantWebGL(attributeInfo.location, value);
|
|
1363
|
-
} else if (!((options == null ? void 0 : options.disableWarnings)
|
|
1360
|
+
} else if (!((options == null ? void 0 : options.disableWarnings) ?? this.props.disableWarnings)) {
|
|
1364
1361
|
import_core10.log.warn(`Model "${this.id}: Ignoring constant supplied for unknown attribute "${attributeName}"`)();
|
|
1365
1362
|
}
|
|
1366
1363
|
}
|