<div>
                    <span style="font-size: 12px;">Huge plus one!</span>
                </div>
                <div><div><br></div>--&nbsp;<br><span style="font-family: arial; font-size: small; "><font face="Helvetica" size="3"><span style="font-size: 12px; ">Jonathan Williamson<br><br>Instructor -&nbsp;</span></font><a href="http://www.blendercookie.com/" target="_blank"><font face="Helvetica" size="3"><span style="font-size: 12px; ">http://www.blendercookie.com</span></font></a><font face="Helvetica" size="3"><span style="font-size: 12px; "><br>Personal Trainer -&nbsp;</span></font><a href="http://www.mavenseed.com/" target="_blank"><font face="Helvetica" size="3"><span style="font-size: 12px; ">http://www.mavenseed.com</span></font></a><font face="Helvetica" size="3"><span style="font-size: 12px; "><br>Portfolio -&nbsp;</span></font><a href="http://www.jw3d.com/" target="_blank"><font face="Helvetica" size="3"><span style="font-size: 12px; ">http://www.jw3d.com</span></font></a></span><div><br></div></div>
                 
                <p style="color: #A0A0A8;">On Friday, October 26, 2012 at 3:00 PM, Gottfried Hofmann wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div><div>Hey there,</div><div><br></div><div>one thing I was hoping for since the dawn of Cycles is a factor input </div><div>for the Add-Shader (just like the mix shader has). I think that's way </div><div>more intuitive than making the shader you want to add darker/brighter if </div><div>you want to change the strength of the effect.</div><div><br></div><div>Here is a simple OSL script that creates such an Add-Shader:</div><div><br></div><div>#include "stdosl.h"</div><div><br></div><div>shader node_advancedadd_closure(</div><div>float Fac = 1.0,</div><div>closure color Closure1 = 0,</div><div>closure color Closure2 = 0,</div><div>output closure color Closure = 0)</div><div>{</div><div>float t = clamp(Fac, 0.0, 1.0);</div><div>Closure = Closure1 + t * Closure2;</div><div>}</div><div><br></div><div>To avoid breaking things the factor could be set to 1 by default so the </div><div>Node would normally work just like the current Add-Shader.</div><div><br></div><div>Cheers,</div><div>Gottfried</div><div>_______________________________________________</div><div>Bf-cycles mailing list</div><div><a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a></div><div><a href="http://lists.blender.org/mailman/listinfo/bf-cycles">http://lists.blender.org/mailman/listinfo/bf-cycles</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>