Skip to content

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