2
0
sunag 2 жил өмнө
parent
commit
655f5c1d92

+ 1 - 1
examples/jsm/nodes/Nodes.js

@@ -90,7 +90,7 @@ export { default as UserDataNode, userData } from './accessors/UserDataNode.js';
 // display
 // display
 export { default as BlendModeNode, burn, dodge, overlay, screen } from './display/BlendModeNode.js';
 export { default as BlendModeNode, burn, dodge, overlay, screen } from './display/BlendModeNode.js';
 export { default as ColorAdjustmentNode, saturation, vibrance, hue, lumaCoeffs, luminance } from './display/ColorAdjustmentNode.js';
 export { default as ColorAdjustmentNode, saturation, vibrance, hue, lumaCoeffs, luminance } from './display/ColorAdjustmentNode.js';
-export { default as ColorSpaceNode, linearToColorSpace, colorSpaceToLinear as sRGBToColorSpace, linearTosRGB, sRGBToLinear } from './display/ColorSpaceNode.js';
+export { default as ColorSpaceNode, linearToColorSpace, colorSpaceToLinear, linearTosRGB, sRGBToLinear } from './display/ColorSpaceNode.js';
 export { default as FrontFacingNode, frontFacing, faceDirection } from './display/FrontFacingNode.js';
 export { default as FrontFacingNode, frontFacing, faceDirection } from './display/FrontFacingNode.js';
 export { default as NormalMapNode, normalMap, TBNViewMatrix } from './display/NormalMapNode.js';
 export { default as NormalMapNode, normalMap, TBNViewMatrix } from './display/NormalMapNode.js';
 export { default as PosterizeNode, posterize } from './display/PosterizeNode.js';
 export { default as PosterizeNode, posterize } from './display/PosterizeNode.js';

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

@@ -140,7 +140,7 @@ class TextureNode extends UniformNode {
 
 
 			let snippet = propertyName;
 			let snippet = propertyName;
 
 
-			if ( builder.needsColorSpace( this.value ) ) {
+			if ( builder.needsColorSpaceToLinear( this.value ) ) {
 
 
 				snippet = colorSpaceToLinear( expression( snippet, nodeType ), this.value.colorSpace ).construct( builder ).build( builder, nodeType );
 				snippet = colorSpaceToLinear( expression( snippet, nodeType ), this.value.colorSpace ).construct( builder ).build( builder, nodeType );
 
 

+ 1 - 1
examples/jsm/nodes/core/NodeBuilder.js

@@ -390,7 +390,7 @@ class NodeBuilder {
 
 
 	}
 	}
 
 
-	needsColorSpace( /*texture*/ ) {
+	needsColorSpaceToLinear( /*texture*/ ) {
 
 
 		return false;
 		return false;
 
 

+ 1 - 1
examples/jsm/renderers/webgpu/nodes/WGSLNodeBuilder.js

@@ -131,7 +131,7 @@ class WebGPUNodeBuilder extends NodeBuilder {
 
 
 	}
 	}
 
 
-	needsColorSpace( texture ) {
+	needsColorSpaceToLinear( texture ) {
 
 
 		return texture.isVideoTexture === true;
 		return texture.isVideoTexture === true;
 
 

+ 1 - 1
examples/webgpu_backdrop_area.html

@@ -98,7 +98,7 @@
 				bicubicMaterial.transparent = true;
 				bicubicMaterial.transparent = true;
 
 
 				const pixelMaterial = new MeshBasicNodeMaterial();
 				const pixelMaterial = new MeshBasicNodeMaterial();
-				pixelMaterial.backdropNode = viewportSharedTexture( viewportTopLeft.mul( 100 ).floor().div( 100 ) ); // @TODO: Move to alpha value [ 0, 1 ]
+				pixelMaterial.backdropNode = viewportSharedTexture( viewportTopLeft.mul( 100 ).floor().div( 100 ) );
 				pixelMaterial.transparent = true;
 				pixelMaterial.transparent = true;
 
 
 				// box / floor
 				// box / floor