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

NodeMaterial: Add RemapNode. #21793

Merged
merged 1 commit into from
May 7, 2021
Merged

NodeMaterial: Add RemapNode. #21793

merged 1 commit into from
May 7, 2021

Conversation

donmccurdy
Copy link
Collaborator

Related issues: #20541, #15666

RemapNode: Linearly remap incoming values from one range of float/color/vector values to another.

Based on MaterialX OSL implementation (Apache 2.0). Omits the doClamp option, which doesn't appear to be required by the MaterialX specification. Presumably there's a clever way to generate the appropriate overloads without hard-coding them all, but I wasn't sure how to go about that.

/cc @sunag

@sunag
Copy link
Collaborator

sunag commented May 6, 2021

@donmccurdy very nicee job!

@mrdoob mrdoob merged commit 8add74c into mrdoob:dev May 7, 2021
@mrdoob
Copy link
Owner

mrdoob commented May 7, 2021

Thanks!

@donmccurdy donmccurdy deleted the feat-remapnode branch May 7, 2021 04:34
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