ソースを参照

Fix color space conversion issue

The color space conversion is currently inverted. Using fromDecoding instead of fromEncoding now produces the correct conversion.
njarraud 6 年 前
コミット
22e161ec12
1 ファイル変更1 行追加1 行削除
  1. 1 1
      examples/jsm/nodes/inputs/TextureNode.js

+ 1 - 1
examples/jsm/nodes/inputs/TextureNode.js

@@ -65,7 +65,7 @@ TextureNode.prototype.generate = function ( builder, output ) {
 	builder.addContext( context );
 
 	this.colorSpace = this.colorSpace || new ColorSpaceNode( new ExpressionNode( '', outputType ) );
-	this.colorSpace.fromEncoding( builder.getTextureEncodingFromMap( this.value ) );
+	this.colorSpace.fromDecoding( builder.getTextureEncodingFromMap( this.value ) );
 	this.colorSpace.input.parse( code );
 
 	code = this.colorSpace.build( builder, outputType );