Skip to content

Commit

Permalink
Fix experience.js typo (#1245)
Browse files Browse the repository at this point in the history
This is basically a test PR :)

Changed wireframe section to display material's wireframe instead of
point cloud. I believe it can only be one or the other, as far as
`material.wireframe` and `material.pointcloud` go.

Also changed loop to use `index` instead of `0`.
  • Loading branch information
alexchuber authored Jun 23, 2023
1 parent 1a96213 commit 10bf14c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Apps/Playground/Scripts/experience.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,9 @@ CreateBoxAsync(scene).then(function () {
if (wireframe) {
var material = new BABYLON.StandardMaterial("wireframe", scene);
material.wireframe = true;
material.pointsCloud = true;

for (var index = 0; index < scene.meshes.length; index++) {
scene.meshes[0].material = material;
scene.meshes[index].material = material;
}
}

Expand Down

0 comments on commit 10bf14c

Please sign in to comment.