Gregg Tavares 5 years ago
parent
commit
a067c2ff2d

+ 3 - 3
threejs/lessons/threejs-multiple-scenes.md

@@ -147,7 +147,7 @@ test with `Renderer.setScissorTest` and then setting both the scissor and the vi
 function renderSceneInfo(sceneInfo) {
   const {scene, camera, elem} = sceneInfo;
 
-  // get the viewport relative position opf this element
+  // get the viewport relative position of this element
   const {left, right, top, bottom, width, height} =
       elem.getBoundingClientRect();
 
@@ -284,7 +284,7 @@ function render(time) {
   renderer.domElement.style.transform = transform;
 
   for (const {elem, fn} of sceneElements) {
-    // get the viewport relative position opf this element
+    // get the viewport relative position of this element
     const rect = elem.getBoundingClientRect();
     const {left, right, top, bottom, width, height} = rect;
 
@@ -630,7 +630,7 @@ function render(time) {
 
 -  for (const {elem, fn} of sceneElements) {
 +  for (const {elem, fn, ctx} of sceneElements) {
-    // get the viewport relative position opf this element
+    // get the viewport relative position of this element
     const rect = elem.getBoundingClientRect();
     const {left, right, top, bottom, width, height} = rect;
 +    const rendererCanvas = renderer.domElement;

+ 1 - 1
threejs/threejs-multiple-scenes-controls.html

@@ -160,7 +160,7 @@ function main() {
     renderer.domElement.style.transform = transform;
 
     for (const {elem, fn} of sceneElements) {
-      // get the viewport relative position opf this element
+      // get the viewport relative position of this element
       const rect = elem.getBoundingClientRect();
       const {left, right, top, bottom, width, height} = rect;
 

+ 1 - 1
threejs/threejs-multiple-scenes-copy-canvas.html

@@ -136,7 +136,7 @@ function main() {
     time *= 0.001;
 
     for (const {elem, fn, ctx} of sceneElements) {
-      // get the viewport relative position opf this element
+      // get the viewport relative position of this element
       const rect = elem.getBoundingClientRect();
       const {left, right, top, bottom, width, height} = rect;
       const rendererCanvas = renderer.domElement;

+ 1 - 1
threejs/threejs-multiple-scenes-generic.html

@@ -144,7 +144,7 @@ function main() {
     renderer.domElement.style.transform = transform;
 
     for (const {elem, fn} of sceneElements) {
-      // get the viewport relative position opf this element
+      // get the viewport relative position of this element
       const rect = elem.getBoundingClientRect();
       const {left, right, top, bottom, width, height} = rect;
 

+ 1 - 1
threejs/threejs-multiple-scenes-selector.html

@@ -150,7 +150,7 @@ function main() {
     renderer.domElement.style.transform = transform;
 
     for (const {elem, fn} of sceneElements) {
-      // get the viewport relative position opf this element
+      // get the viewport relative position of this element
       const rect = elem.getBoundingClientRect();
       const {left, right, top, bottom, width, height} = rect;
 

+ 1 - 1
threejs/threejs-multiple-scenes-v1.html

@@ -120,7 +120,7 @@ function main() {
   function renderSceneInfo(sceneInfo) {
     const {scene, camera, elem} = sceneInfo;
 
-    // get the viewport relative position opf this element
+    // get the viewport relative position of this element
     const {left, right, top, bottom, width, height} =
         elem.getBoundingClientRect();
 

+ 1 - 1
threejs/threejs-multiple-scenes-v2.html

@@ -122,7 +122,7 @@ function main() {
   function renderSceneInfo(sceneInfo) {
     const {scene, camera, elem} = sceneInfo;
 
-    // get the viewport relative position opf this element
+    // get the viewport relative position of this element
     const {left, right, top, bottom, width, height} =
         elem.getBoundingClientRect();
 

+ 1 - 1
threejs/threejs-multiple-scenes-v3.html

@@ -122,7 +122,7 @@ function main() {
   function renderSceneInfo(sceneInfo) {
     const {scene, camera, elem} = sceneInfo;
 
-    // get the viewport relative position opf this element
+    // get the viewport relative position of this element
     const {left, right, top, bottom, width, height} =
         elem.getBoundingClientRect();