|
@@ -74,8 +74,7 @@
|
|
<p>现在让我们加载阴影贴图</p>
|
|
<p>现在让我们加载阴影贴图</p>
|
|
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const shadowTexture = loader.load("resources/images/roundshadow.png");
|
|
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const shadowTexture = loader.load("resources/images/roundshadow.png");
|
|
</pre>
|
|
</pre>
|
|
-<p>and make an array to remember each sphere and associated objects.
|
|
|
|
-并且创建一个数组来存放每个球体和它相关的对象</p>
|
|
|
|
|
|
+<p>并且创建一个数组来存放每个球体和它相关的对象</p>
|
|
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const sphereShadowBases = [];
|
|
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">const sphereShadowBases = [];
|
|
</pre>
|
|
</pre>
|
|
<p>现在我们创建一个球体</p>
|
|
<p>现在我们创建一个球体</p>
|
|
@@ -366,4 +365,4 @@ updateCamera();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-</body></html>
|
|
|
|
|
|
+</body></html>
|