Skip to content

Commit 1f32fe0

Browse files
davcrigreggman
authored andcommitted
Fix typo in point lighting example.
In `webgl-3d-lighting-point-color.html` the specular color is set to [1.0, 0.2, 0.2]
1 parent d375fce commit 1f32fe0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

webgl/lessons/webgl-3d-lighting-point.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ and
341341
+ // set the light color
342342
+ gl.uniform3fv(lightColorLocation, normalize([1, 0.6, 0.6])); // red light
343343
+ // set the specular color
344-
+ gl.uniform3fv(specularColorLocation, normalize([1, 0.6, 0.6])); // red light
344+
+ gl.uniform3fv(specularColorLocation, normalize([1, 0.2, 0.2])); // red light
345345

346346
{{{example url="../webgl-3d-lighting-point-color.html" }}}
347347

webgl/lessons/zh_cn/webgl-3d-lighting-point.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ TOC: 点光源
320320
+ // 设置光照颜色
321321
+ gl.uniform3fv(lightColorLocation, normalize([1, 0.6, 0.6])); // red light
322322
+ // 设置高光颜色
323-
+ gl.uniform3fv(specularColorLocation, normalize([1, 0.6, 0.6])); // red light
323+
+ gl.uniform3fv(specularColorLocation, normalize([1, 0.2, 0.2])); // red light
324324

325325
{{{example url="../webgl-3d-lighting-point-color.html" }}}
326326

0 commit comments

Comments
 (0)