2
0
Эх сурвалжийг харах

Fix color space conversion for CubeTextureNode

Following up on the update of TextureNode, colors pace fromEncoding has been replaced by fromDecoding.
Scrubs 6 жил өмнө
parent
commit
45f1286ef9

+ 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 );