Blender Git Loki

Git Commits -> Revision 7a7eada

Revision 7a7eada by Omar Emara (master)
August 14, 2019, 08:53 (GMT)
Shading: Add a clamp option to the Map Range node.

If the option is enabled, the output is clamped to the target range.
The target range is [To Min, To Max]. The option is enabled by default.

The clamp option is implemented in EEVEE by linking to the `clamp_value`
GLSL function. And it is implemented in Cycles using a graph expand
function.

Reviewers: brecht, JacquesLucke

Differential Revision: https://developer.blender.org/D5477

Commit Details:

Full Hash: 7a7eadaf7f6be4008f49a83d76c5a6d5a6294f14
Parent Commit: c9acc5f
Lines Changed: +52, -3

7 Modified Paths:

/intern/cycles/blender/blender_shader.cpp (+4, -1) (Diff)
/intern/cycles/render/nodes.cpp (+15, -0) (Diff)
/intern/cycles/render/nodes.h (+3, -0) (Diff)
/source/blender/editors/space_node/drawnode.c (+8, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+10, -0) (Diff)
/source/blender/nodes/NOD_static_types.h (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_map_range.c (+11, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021