Skip to content

Commit 47ad87b

Browse files
authored
Texture3DNode: Remove outdated setupUV(). (#32630)
1 parent c645c60 commit 47ad87b

1 file changed

Lines changed: 1 addition & 31 deletions

File tree

src/nodes/accessors/Texture3DNode.js

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import TextureNode from './TextureNode.js';
2-
import { nodeProxy, vec3, Fn, If, int } from '../tsl/TSLBase.js';
3-
import { textureSize } from './TextureSizeNode.js';
2+
import { nodeProxy, vec3, Fn, If } from '../tsl/TSLBase.js';
43

54
const normal = Fn( ( { texture, uv } ) => {
65

@@ -115,35 +114,6 @@ class Texture3DNode extends TextureNode {
115114
*/
116115
setUpdateMatrix( /*value*/ ) { } // Ignore .updateMatrix for 3d TextureNode
117116

118-
/**
119-
* Overwrites the default implementation to return the unmodified uv node.
120-
*
121-
* @param {NodeBuilder} builder - The current node builder.
122-
* @param {Node} uvNode - The uv node to setup.
123-
* @return {Node} The unmodified uv node.
124-
*/
125-
setupUV( builder, uvNode ) {
126-
127-
const texture = this.value;
128-
129-
if ( builder.isFlipY() && ( texture.isRenderTargetTexture === true || texture.isFramebufferTexture === true ) ) {
130-
131-
if ( this.sampler ) {
132-
133-
uvNode = uvNode.flipY();
134-
135-
} else {
136-
137-
uvNode = uvNode.setY( int( textureSize( this, this.levelNode ).y ).sub( uvNode.y ).sub( 1 ) );
138-
139-
}
140-
141-
}
142-
143-
return uvNode;
144-
145-
}
146-
147117
/**
148118
* Generates the uv code snippet.
149119
*

0 commit comments

Comments
 (0)