The clamp functionality of the map range node is currently not behaving as both what the shader node version does and what the tooltip says.
It should clamp the output to the set To range. Currently it is clamping to [0,1].
Description
Description
Revisions and Commits
Revisions and Commits
Related Objects
Related Objects
Event Timeline
Comment Actions
I'd like to help with this, but I'm a little confused. Is this for the composite Map Range node? I can't find a Map Range node in the Geometry nodes source code, although it's in the manual.
Comment Actions
@Sam Miller (samuelmiller) Some of the nodes are shared between geometry nodes and the shader nodes. Maybe take a look at node_shader_map_range.cc.
Comment Actions
I added a video showcasing that it's not working correctly to the description.
I'm not a developer myself, so I'm not sure where to look in the code.
@Jacques Lucke (JacquesLucke) @Hans Goudey (HooglyBoogly) could one of you guys help out?
Comment Actions
I think I found the offending line of code and have submitted a patch. I did a limited test of the functionality and it worked for me.