diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-05-08 00:24:38 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-05-08 00:24:38 +0400 |
commit | e6a84eb1b542e7cafe5e760530882bb806f3c433 (patch) | |
tree | e3d7b9f8dab6c2d55ec0d45297ba281599f3e92f /source/blender/nodes/NOD_shader.h | |
parent | f44e80e6387601dea6e4e0801d0a387455a02d31 (diff) |
Cycles: add light falloff node, with quadratic/linear/constant falloff and a
smoothing factor to reduce high values near the light.
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/More#Light_Falloff
Note that this was already possible to do manually with the Ray Length, but
this adds a convenient node for it. This commit also makes the mapping node
min/max option work, fixing #31348.
Diffstat (limited to 'source/blender/nodes/NOD_shader.h')
-rw-r--r-- | source/blender/nodes/NOD_shader.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/nodes/NOD_shader.h b/source/blender/nodes/NOD_shader.h index d2b3a61971b..3d93f41cfe5 100644 --- a/source/blender/nodes/NOD_shader.h +++ b/source/blender/nodes/NOD_shader.h @@ -73,6 +73,7 @@ void register_node_type_sh_hue_sat(struct bNodeTreeType *ttype); void register_node_type_sh_attribute(struct bNodeTreeType *ttype); void register_node_type_sh_geometry(struct bNodeTreeType *ttype); void register_node_type_sh_light_path(struct bNodeTreeType *ttype); +void register_node_type_sh_light_falloff(struct bNodeTreeType *ttype); void register_node_type_sh_fresnel(struct bNodeTreeType *ttype); void register_node_type_sh_layer_weight(struct bNodeTreeType *ttype); void register_node_type_sh_tex_coord(struct bNodeTreeType *ttype); |