浏览代码

Fixed node material crashing, added more options to sheen demo

Daniel Sturk 6 年之前
父节点
当前提交
ef38e812fc
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      examples/jsm/nodes/materials/nodes/StandardNode.js

+ 4 - 0
examples/jsm/nodes/materials/nodes/StandardNode.js

@@ -297,6 +297,10 @@ StandardNode.prototype.build = function ( builder ) {
 
 			output.push( 'float sheen = 0.;' );
 
+		} else {
+
+			output.push( 'float sheen = 0.;' );
+
 		}
 
 		if ( reflectivity ) {