Selaa lähdekoodia

Fix color space conversion for CubeTextureNode

Following up on the update of TextureNode, colors pace fromEncoding has been replaced by fromDecoding.
Scrubs 6 vuotta sitten
vanhempi
commit
45f1286ef9
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      examples/jsm/nodes/inputs/CubeTextureNode.js

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

@@ -61,7 +61,7 @@ CubeTextureNode.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 );