Gregg Tavares 4 years ago
parent
commit
6a9faf452f

+ 2 - 2
threejs/lessons/kr/threejs-lights.md

@@ -263,7 +263,7 @@ function makeXYZGUI(gui, vector3, name, onChangeFn) {
 그리고 조명의 위치, 목표의 위치 객체에 방금 만든 함수를 각각 적용합니다.
 
 ```js
-+function updateLight{
++function updateLight() {
 +  light.target.updateMatrixWorld();
 +  helper.update();
 +}
@@ -314,7 +314,7 @@ scene.add(helper);
 짤 수 있습니다.
 
 ```js
-function updateLight{
+function updateLight() {
 -  light.target.updateMatrixWorld();
   helper.update();
 }

+ 2 - 2
threejs/lessons/ru/threejs-lights.md

@@ -286,7 +286,7 @@ function makeXYZGUI(gui, vector3, name, onChangeFn) {
 так и для цели, как тут
 
 ```js
-+function updateLight{
++function updateLight() {
 +  light.target.updateMatrixWorld();
 +  helper.update();
 +}
@@ -336,7 +336,7 @@ scene.add(helper);
 и поскольку нет цели, то `onChange` функция может быть проще.
 
 ```js
-function updateLight{
+function updateLight() {
 -  light.target.updateMatrixWorld();
   helper.update();
 }

+ 2 - 2
threejs/lessons/threejs-lights.md

@@ -287,7 +287,7 @@ Then we can use that for both the light's position
 and the target's position like this
 
 ```js
-+function updateLight{
++function updateLight() {
 +  light.target.updateMatrixWorld();
 +  helper.update();
 +}
@@ -338,7 +338,7 @@ scene.add(helper);
 and as there is no target the `onChange` function can be simpler.
 
 ```js
-function updateLight{
+function updateLight() {
 -  light.target.updateMatrixWorld();
   helper.update();
 }