Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextureNode: Add .getTextureMatrix() #26461

Merged
merged 1 commit into from
Jul 19, 2023
Merged

TextureNode: Add .getTextureMatrix() #26461

merged 1 commit into from
Jul 19, 2023

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Jul 19, 2023

Related issue: #26455

Description

Cleanup and improvement of the API separating a .getDefaultUV() of .getTextureMatrix().

@sunag sunag added this to the r155 milestone Jul 19, 2023
@sunag sunag merged commit 4e12145 into mrdoob:dev Jul 19, 2023
@sunag sunag deleted the dev-cubeT branch July 19, 2023 06:03

if ( uvNode === null ) uvNode = uv( texture.channel );
getTextureMatrix( uvNode ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe getTransformedUV or getFinalUV? Because this method doesn't return the matrix.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getTransformedUV() sounds good to me 👍

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants