diff options
author | Thomas Dinges <blender@dingto.org> | 2013-07-04 03:46:56 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2013-07-04 03:46:56 +0400 |
commit | 285ef99931447646b20ec968ec87f7c68939a104 (patch) | |
tree | 52c8b276b800baef886cf0867ad1a99554503ea2 /intern/cycles/kernel/shaders/node_combine_hsv.osl | |
parent | e7fc69bdfd06f9fda7ddbcf53f26fee0b81abf8d (diff) |
Cycles:
* Added 2 new nodes to combine and separate HSV colors.
Screenshot:
http://www.pasteall.org/pic/show.php?id=54828
Diffstat (limited to 'intern/cycles/kernel/shaders/node_combine_hsv.osl')
-rw-r--r-- | intern/cycles/kernel/shaders/node_combine_hsv.osl | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/intern/cycles/kernel/shaders/node_combine_hsv.osl b/intern/cycles/kernel/shaders/node_combine_hsv.osl new file mode 100644 index 00000000000..a5c889e340f --- /dev/null +++ b/intern/cycles/kernel/shaders/node_combine_hsv.osl @@ -0,0 +1,29 @@ +/* + * Copyright 2013, Blender Foundation. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#include "stdosl.h" + +shader node_combine_hsv( + float H = 0.0, + float S = 0.0, + float V = 0.0, + output color Color = 0.8) +{ + Color = color("hsv", H, S, V); +} + |