Skip to content

Commit 655f5c1

Browse files
authored
Nodes: Clean up (#26271)
1 parent 4ef4914 commit 655f5c1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

examples/jsm/nodes/Nodes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export { default as UserDataNode, userData } from './accessors/UserDataNode.js';
9090
// display
9191
export { default as BlendModeNode, burn, dodge, overlay, screen } from './display/BlendModeNode.js';
9292
export { default as ColorAdjustmentNode, saturation, vibrance, hue, lumaCoeffs, luminance } from './display/ColorAdjustmentNode.js';
93-
export { default as ColorSpaceNode, linearToColorSpace, colorSpaceToLinear as sRGBToColorSpace, linearTosRGB, sRGBToLinear } from './display/ColorSpaceNode.js';
93+
export { default as ColorSpaceNode, linearToColorSpace, colorSpaceToLinear, linearTosRGB, sRGBToLinear } from './display/ColorSpaceNode.js';
9494
export { default as FrontFacingNode, frontFacing, faceDirection } from './display/FrontFacingNode.js';
9595
export { default as NormalMapNode, normalMap, TBNViewMatrix } from './display/NormalMapNode.js';
9696
export { default as PosterizeNode, posterize } from './display/PosterizeNode.js';

examples/jsm/nodes/accessors/TextureNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class TextureNode extends UniformNode {
140140

141141
let snippet = propertyName;
142142

143-
if ( builder.needsColorSpace( this.value ) ) {
143+
if ( builder.needsColorSpaceToLinear( this.value ) ) {
144144

145145
snippet = colorSpaceToLinear( expression( snippet, nodeType ), this.value.colorSpace ).construct( builder ).build( builder, nodeType );
146146

examples/jsm/nodes/core/NodeBuilder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ class NodeBuilder {
390390

391391
}
392392

393-
needsColorSpace( /*texture*/ ) {
393+
needsColorSpaceToLinear( /*texture*/ ) {
394394

395395
return false;
396396

examples/jsm/renderers/webgpu/nodes/WGSLNodeBuilder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class WebGPUNodeBuilder extends NodeBuilder {
131131

132132
}
133133

134-
needsColorSpace( texture ) {
134+
needsColorSpaceToLinear( texture ) {
135135

136136
return texture.isVideoTexture === true;
137137

examples/webgpu_backdrop_area.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
bicubicMaterial.transparent = true;
9999

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

104104
// box / floor

0 commit comments

Comments
 (0)