From b01ffd2bed3e04ca0d65a7f55a102e7c700512a0 Mon Sep 17 00:00:00 2001 From: Winston Cooke <71997294+winstoncooke@users.noreply.github.com> Date: Wed, 10 Aug 2022 17:37:45 -0500 Subject: [PATCH] Clarify example in first-scene.md I think this makes it a bit clearer that the word _mesh_ is a placeholder for the object. The way it currently reads, a novice might think following the example that they should literally use `scene.remove(mesh)` instead of `scene.remove(cube)`. --- markdown/book/first-steps/first-scene.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/markdown/book/first-steps/first-scene.md b/markdown/book/first-steps/first-scene.md index 04f6c1a..930d943 100644 --- a/markdown/book/first-steps/first-scene.md +++ b/markdown/book/first-steps/first-scene.md @@ -363,7 +363,7 @@ Now that we have a geometry and a material, we can create our mesh, passing in b {{< code file="worlds/first-steps/first-scene/src/main.final.js" from="32" to="39" lang="js" linenos="true" caption="_**main.js**_: create the mesh" >}}{{< /code >}} -Later, we can access the geometry and material at any time using `mesh.geometry` and `mesh.material`. +Later, we can access the geometry and material at any time using `_mesh_.geometry` and `_mesh_.material`. ### Add the Mesh to the Scene @@ -371,7 +371,7 @@ Once the `mesh` has been created, we need to add it to our scene. {{< code file="worlds/first-steps/first-scene/src/main.final.js" from="41" to="42" lang="js" linenos="true" caption="_**main.js**_: add the mesh to the scene" >}}{{< /code >}} -Later, if we want to remove it, we can use `scene.remove(mesh)`. Once the mesh has been added to the scene, we call the mesh _a child_ of the scene, and we call the scene _the parent_ of the mesh. +Later, if we want to remove it, we can use `scene.remove(_mesh_)`. Once the mesh has been added to the scene, we call the mesh _a child_ of the scene, and we call the scene _the parent_ of the mesh. ## 5. Create the Renderer {#create-the-renderer}