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

BumpMapNode: Subflows of TextureNode and UVNode #26865

Merged
merged 2 commits into from
Sep 29, 2023
Merged

BumpMapNode: Subflows of TextureNode and UVNode #26865

merged 2 commits into from
Sep 29, 2023

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Sep 29, 2023

Fixes: #26848, #26847

Description

This approach allows the creation of subflows of samplers without having to create new TextureNodes, thus preserving the instance, an important feature when used in a MaterialNode or to define algorithms or channels before calling BumpMapNode, such as bumpMap( node.r ).

The inverted bump correction was also made.

@sunag sunag added this to the r158 milestone Sep 29, 2023

const Hll = texture( bumpTexture, uvNode ).x;
if ( texNode.isTextureNode !== true ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we actually need this traverse?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If textureNode is using a UV from a channel other than 0 or procedural.

@sunag sunag marked this pull request as ready for review September 29, 2023 04:40
@sunag sunag merged commit 8d71879 into dev Sep 29, 2023
32 checks passed
@sunag sunag deleted the deb-bumpMapNode branch September 29, 2023 15:50
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.

uvNode hardcoded with index 0 in BumpMapNode and NormalMapNode
2 participants