瀏覽代碼

Refractor: Fix undefined statement

Mugen87 7 年之前
父節點
當前提交
7fd46f6eb1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/js/objects/Refractor.js

+ 1 - 1
examples/js/objects/Refractor.js

@@ -13,7 +13,7 @@ THREE.Refractor = function ( width, height, options ) {
 
 
 	options = options || {};
 	options = options || {};
 
 
-	var color = ( options.color !== undefined ) !== undefined ? new THREE.Color( options.color ) : new THREE.Color( 0x7F7F7F );
+	var color = ( options.color !== undefined ) ? new THREE.Color( options.color ) : new THREE.Color( 0x7F7F7F );
 	var textureWidth = options.textureWidth || 512;
 	var textureWidth = options.textureWidth || 512;
 	var textureHeight = options.textureHeight || 512;
 	var textureHeight = options.textureHeight || 512;
 	var clipBias = options.clipBias || 0;
 	var clipBias = options.clipBias || 0;