소스 검색

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 ) {