Browse Source

Fixed node material crashing, added more options to sheen demo

Daniel Sturk 6 years ago
parent
commit
ef38e812fc
1 changed files with 4 additions and 0 deletions
  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 ) {