瀏覽代碼

Reduces some extra lines.

sunag 1 年之前
父節點
當前提交
f017aa9080
共有 2 個文件被更改,包括 0 次插入4 次删除
  1. 0 1
      examples/jsm/nodes/math/MathNode.js
  2. 0 3
      examples/jsm/nodes/utils/RotateNode.js

+ 0 - 1
examples/jsm/nodes/math/MathNode.js

@@ -377,5 +377,4 @@ addNodeElement( 'gain', gain );
 addNodeElement( 'pcurve', pcurve );
 addNodeElement( 'sinc', sinc );
 
-
 addNodeClass( 'MathNode', MathNode );

+ 0 - 3
examples/jsm/nodes/utils/RotateNode.js

@@ -21,8 +21,6 @@ class RotateNode extends TempNode {
 
 	setup() {
 
-
-
 		const { rotationNode, positionNode } = this;
 
 		const rotation = rotationNode;
@@ -30,7 +28,6 @@ class RotateNode extends TempNode {
 		const rotationYMatrix = mat4( vec4( cos( rotation.y ), 0.0, sin( rotation.y ), 0.0 ), vec4( 0.0, 1.0, 0.0, 0.0 ), vec4( sin( rotation.y ).negate(), 0.0, cos( rotation.y ), 0.0 ), vec4( 0.0, 0.0, 0.0, 1.0 ) );
 		const rotationZMatrix = mat4( vec4( cos( rotation.z ), sin( rotation.z ).negate(), 0.0, 0.0 ), vec4( sin( rotation.z ), cos( rotation.z ), 0.0, 0.0 ), vec4( 0.0, 0.0, 1.0, 0.0 ), vec4( 0.0, 0.0, 0.0, 1.0 ) );
 
-
 		return rotationXMatrix.mul( rotationYMatrix ).mul( rotationZMatrix ).mul( vec4( positionNode, 1.0 ) ).xyz;
 
 	}