Explorar o código

Fix color space conversion issue

The color space conversion is currently inverted. Using fromDecoding instead of fromEncoding now produces the correct conversion.
njarraud %!s(int64=6) %!d(string=hai) anos
pai
achega
22e161ec12
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 );