sunag 6 年之前
父节点
当前提交
b706d6c608
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 1 1
      examples/js/nodes/materials/nodes/PhongNode.js
  2. 1 2
      examples/webgl_materials_nodes.html

+ 1 - 1
examples/js/nodes/materials/nodes/PhongNode.js

@@ -145,7 +145,7 @@ PhongNode.prototype.build = function ( builder ) {
 		var environment = this.environment ? this.environment.flow( builder, 'c', { slot: 'environment' } ) : undefined;
 		var environment = this.environment ? this.environment.flow( builder, 'c', { slot: 'environment' } ) : undefined;
 		var environmentAlpha = this.environmentAlpha && this.environment ? this.environmentAlpha.flow( builder, 'f' ) : undefined;
 		var environmentAlpha = this.environmentAlpha && this.environment ? this.environmentAlpha.flow( builder, 'f' ) : undefined;
 
 
-		builder.requires.transparent = alpha != undefined;
+		builder.requires.transparent = alpha !== undefined;
 
 
 		builder.addParsCode( [
 		builder.addParsCode( [
 			"#include <fog_pars_fragment>",
 			"#include <fog_pars_fragment>",

+ 1 - 2
examples/webgl_materials_nodes.html

@@ -210,7 +210,7 @@
 
 
 					} );
 					} );
 
 
-				} else if ( typeof value == 'object' ) {
+				} else if ( typeof value === 'object' ) {
 
 
 					param[ name ] = value[ Object.keys( value )[ 0 ] ];
 					param[ name ] = value[ Object.keys( value )[ 0 ] ];
 
 
@@ -2305,7 +2305,6 @@
 
 
 						addGui( 'scope', {
 						addGui( 'scope', {
 							vector: THREE.ReflectNode.VECTOR,
 							vector: THREE.ReflectNode.VECTOR,
-							vector2: THREE.ReflectNode.VECTOR2,
 							cube: THREE.ReflectNode.CUBE,
 							cube: THREE.ReflectNode.CUBE,
 							sphere: THREE.ReflectNode.SPHERE
 							sphere: THREE.ReflectNode.SPHERE
 						}, function ( val ) {
 						}, function ( val ) {