Forráskód Böngészése

Fixed node material crashing, added more options to sheen demo

Daniel Sturk 6 éve
szülő
commit
ef38e812fc
1 módosított fájl, 4 hozzáadás és 0 törlés
  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 ) {