Browse Source

Fixed node material crashing, added more options to sheen demo

Daniel Sturk 6 năm trước cách đây
mục cha
commit
ef38e812fc
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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 ) {