فهرست منبع

NodeMaterial: Clean up.

Mugen87 6 سال پیش
والد
کامیت
cb1cfe9b82

+ 1 - 1
examples/jsm/nodes/effects/BlurNode.js

@@ -16,7 +16,7 @@ function BlurNode( value, uv, radius, size ) {
 
 	this.value = value;
 	this.uv = uv || new UVNode();
-	this.radius = new Vector2Node( 1, 1 );
+	this.radius = radius || new Vector2Node( 1, 1 );
 
 	this.size = size;
 

+ 1 - 1
examples/jsm/nodes/materials/nodes/MeshStandardNode.d.ts

@@ -8,7 +8,7 @@ import { StandardNode } from './StandardNode';
 import { PropertyNode } from "../../inputs/PropertyNode";
 
 export class MeshStandardNode extends StandardNode {
-  constructor(value: Node);
+  constructor();
 
   properties: {
     color: Color;

+ 1 - 1
examples/jsm/nodes/materials/nodes/PhongNode.d.ts

@@ -4,7 +4,7 @@ import { ColorNode } from '../../inputs/ColorNode';
 import { FloatNode } from '../../inputs/FloatNode';
 
 export class PhongNode extends Node {
-  constructor(value: Node);
+  constructor();
 
   color: ColorNode;
   specular: ColorNode;

+ 1 - 1
examples/jsm/nodes/materials/nodes/SpriteNode.d.ts

@@ -3,7 +3,7 @@ import { Node } from '../../core/Node';
 import { ColorNode } from '../../inputs/ColorNode';
 
 export class SpriteNode extends Node {
-  constructor(value: Node);
+  constructor();
 
   color: ColorNode;
   spherical: true;