Parcourir la source

Slowed down colourshift effect in scenegraph tutorial (#34048)

Chester Black il y a 6 jours
Parent
commit
7641c1db0f
2 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 2 2
      manual/examples/scenegraph-tank.html
  2. 2 2
      manual/pages/scenegraph.html

+ 2 - 2
manual/examples/scenegraph-tank.html

@@ -275,8 +275,8 @@ function main() {
 		targetBob.position.y = Math.sin( time * 2 ) * 4;
 		targetMesh.rotation.x = time * 7;
 		targetMesh.rotation.y = time * 13;
-		targetMaterial.emissive.setHSL( time * 10 % 1, 1, .25 );
-		targetMaterial.color.setHSL( time * 10 % 1, 1, .25 );
+		targetMaterial.emissive.setHSL( time * 0.3 % 1, 1, .25 );
+		targetMaterial.color.setHSL( time * 0.3 % 1, 1, .25 );
 
 		// move tank
 		const tankTime = time * .05;

+ 2 - 2
manual/pages/scenegraph.html

@@ -385,8 +385,8 @@ targetOrbit.rotation.y = time * .27;
 targetBob.position.y = Math.sin(time * 2) * 4;
 targetMesh.rotation.x = time * 7;
 targetMesh.rotation.y = time * 13;
-targetMaterial.emissive.setHSL(time * 10 % 1, 1, .25);
-targetMaterial.color.setHSL(time * 10 % 1, 1, .25);
+targetMaterial.emissive.setHSL(time * 0.3 % 1, 1, .25);
+targetMaterial.color.setHSL(time * 0.3 % 1, 1, .25);
 </pre>
 <p>For the tank there's an <a href="/docs/#api/en/core/Object3D"><code class="notranslate" translate="no">Object3D</code></a> called <code class="notranslate" translate="no">tank</code> which is used to move everything
 below it around. The code uses a <a href="/docs/#api/en/extras/curves/SplineCurve"><code class="notranslate" translate="no">SplineCurve</code></a> which it can ask for positions

粤ICP备19079148号