[Bf-cycles] Factor input for Add shader
Montage Studio
jonathan at montagestudio.org
Fri Oct 26 22:01:24 CEST 2012
Huge plus one!
--
Jonathan Williamson
Instructor - http://www.blendercookie.com (http://www.blendercookie.com/)
Personal Trainer - http://www.mavenseed.com (http://www.mavenseed.com/)
Portfolio - http://www.jw3d.com (http://www.jw3d.com/)
On Friday, October 26, 2012 at 3:00 PM, Gottfried Hofmann wrote:
> Hey there,
>
> one thing I was hoping for since the dawn of Cycles is a factor input
> for the Add-Shader (just like the mix shader has). I think that's way
> more intuitive than making the shader you want to add darker/brighter if
> you want to change the strength of the effect.
>
> Here is a simple OSL script that creates such an Add-Shader:
>
> #include "stdosl.h"
>
> shader node_advancedadd_closure(
> float Fac = 1.0,
> closure color Closure1 = 0,
> closure color Closure2 = 0,
> output closure color Closure = 0)
> {
> float t = clamp(Fac, 0.0, 1.0);
> Closure = Closure1 + t * Closure2;
> }
>
> To avoid breaking things the factor could be set to 1 by default so the
> Node would normally work just like the current Add-Shader.
>
> Cheers,
> Gottfried
> _______________________________________________
> Bf-cycles mailing list
> Bf-cycles at blender.org (mailto:Bf-cycles at blender.org)
> http://lists.blender.org/mailman/listinfo/bf-cycles
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-cycles/attachments/20121026/4ac08f80/attachment.htm
More information about the Bf-cycles
mailing list