Skip to content

Commit

Permalink
Fix typo in color-update JavaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 authored Jan 16, 2025
1 parent 2c2856a commit fd2639b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/examples/125_red_test.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
<script>
const modelViewer = document.querySelector("model-viewer");
modelViewer.addEventListener("load", (event) => {
const material = modelViewerParameters.model.materials[0];
const material = modelViewer.model.materials[0];
material.pbrMetallicRoughness.setBaseColorFactor([1, 0, 0, 0.1]);
});
</script>
Expand Down

0 comments on commit fd2639b

Please sign in to comment.