<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="/feed.php">
        <title>Documentation Center public:software:dazstudio:4:referenceguide:interface:panes:shader_mixer:bricks:dzbinaryopbrick</title>
        <description></description>
        <link>/</link>
        <image rdf:resource="/lib/tpl/dazdoccenter/images/favicon.ico" />
       <dc:date>2026-04-18T16:47:17+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="/public/software/dazstudio/4/referenceguide/interface/panes/shader_mixer/bricks/dzbinaryopbrick/start"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="/lib/tpl/dazdoccenter/images/favicon.ico">
        <title>Documentation Center</title>
        <link>/</link>
        <url>/lib/tpl/dazdoccenter/images/favicon.ico</url>
    </image>
    <item rdf:about="/public/software/dazstudio/4/referenceguide/interface/panes/shader_mixer/bricks/dzbinaryopbrick/start">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-19T16:42:56+00:00</dc:date>
        <title>Binary Operation</title>
        <link>/public/software/dazstudio/4/referenceguide/interface/panes/shader_mixer/bricks/dzbinaryopbrick/start</link>
        <description>
&lt;h1 id=&quot;binary_operation&quot;&gt;Binary Operation&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
&lt;a href=&quot;/public/software/dazstudio/4/referenceguide/interface/panes/shader_mixer/brickyard/start&quot; class=&quot;wikilink1&quot; title=&quot;public:software:dazstudio:4:referenceguide:interface:panes:shader_mixer:brickyard:start&quot;&gt;Brickyard&lt;/a&gt; : &lt;a href=&quot;/public/software/dazstudio/4/referenceguide/interface/panes/shader_mixer/brickyard/functions/start&quot; class=&quot;wikilink1&quot; title=&quot;public:software:dazstudio:4:referenceguide:interface:panes:shader_mixer:brickyard:functions:start&quot;&gt;Functions&lt;/a&gt; &amp;gt; &lt;a href=&quot;/public/software/dazstudio/4/referenceguide/interface/panes/shader_mixer/brickyard/functions/mathematical/start&quot; class=&quot;wikilink1&quot; title=&quot;public:software:dazstudio:4:referenceguide:interface:panes:shader_mixer:brickyard:functions:mathematical:start&quot;&gt;Mathematical&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
The Binary Operation brick is a collection of mathematical operations that take two arguments. For mathematical operations that take one argument, see the &lt;a href=&quot;/public/software/dazstudio/4/referenceguide/interface/panes/shader_mixer/bricks/dzunaryopbrick/start&quot; class=&quot;wikilink1&quot; title=&quot;public:software:dazstudio:4:referenceguide:interface:panes:shader_mixer:bricks:dzunaryopbrick:start&quot;&gt;Unary Operation&lt;/a&gt; brick.
&lt;/p&gt;

&lt;p&gt;
Color operations are performed per color channel.
&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&quot;snapshot&quot;&gt;Snapshot&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;



&lt;p&gt;
&lt;a href=&quot;/_media/public/software/dazstudio/4/referenceguide/interface/panes/shader_mixer/bricks/dzbinaryopbrick/math2.png&quot; class=&quot;media&quot; target=&quot;_blank&quot; title=&quot;public:software:dazstudio:4:referenceguide:interface:panes:shader_mixer:bricks:dzbinaryopbrick:math2.png&quot; rel=&quot;noopener&quot;&gt;&lt;img src=&quot;/_media/public/software/dazstudio/4/referenceguide/interface/panes/shader_mixer/bricks/dzbinaryopbrick/math2.png&quot; class=&quot;media&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&quot;parameters&quot;&gt;Parameters&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;



&lt;/div&gt;

&lt;h3 id=&quot;outputs&quot;&gt;Outputs&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Binary Op Result :&lt;/strong&gt; &lt;a href=&quot;/public/software/dazstudio/4/referenceguide/interface/panes/shader_mixer/shader_workspace/brick_anatomy/start#type&quot; class=&quot;wikilink1&quot; title=&quot;public:software:dazstudio:4:referenceguide:interface:panes:shader_mixer:shader_workspace:brick_anatomy:start&quot;&gt;Variable&lt;/a&gt; - Description…&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;

&lt;h3 id=&quot;inputs&quot;&gt;Inputs&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Value :&lt;/strong&gt; &lt;a href=&quot;/public/software/dazstudio/4/referenceguide/interface/panes/shader_mixer/shader_workspace/brick_anatomy/start#type&quot; class=&quot;wikilink1&quot; title=&quot;public:software:dazstudio:4:referenceguide:interface:panes:shader_mixer:shader_workspace:brick_anatomy:start&quot;&gt;Variable&lt;/a&gt; - Description…&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Value 2 :&lt;/strong&gt; &lt;a href=&quot;/public/software/dazstudio/4/referenceguide/interface/panes/shader_mixer/shader_workspace/brick_anatomy/start#type&quot; class=&quot;wikilink1&quot; title=&quot;public:software:dazstudio:4:referenceguide:interface:panes:shader_mixer:shader_workspace:brick_anatomy:start&quot;&gt;Variable&lt;/a&gt; - Description…&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;

&lt;h3 id=&quot;settings&quot;&gt;Settings&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Type&lt;/strong&gt; - sets the &lt;a href=&quot;/public/software/dazstudio/4/referenceguide/interface/panes/shader_mixer/shader_workspace/brick_anatomy/start#type&quot; class=&quot;wikilink1&quot; title=&quot;public:software:dazstudio:4:referenceguide:interface:panes:shader_mixer:shader_workspace:brick_anatomy:start&quot;&gt;type&lt;/a&gt; of the Binary Op Result output parameter, as well as the Value and Value 2 input parameters to one of float, color, point, vector, or normal&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1 node&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Operation&lt;/strong&gt; - sets which binary operation to perform&lt;/div&gt;
&lt;ul&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Add&lt;/strong&gt; - returns Value + Value 2&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Subtract&lt;/strong&gt; - returns Value - Value 2&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Multiply&lt;/strong&gt; - returns Value * Value 2&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Divide&lt;/strong&gt; - returns Value / Value 2&lt;sup&gt;&lt;a href=&quot;#fn__1&quot; id=&quot;fnt__1&quot; class=&quot;fn_top&quot;&gt;1)&lt;/a&gt;&lt;/sup&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Min&lt;/strong&gt; - returns the lesser of Value and Value 2&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Max&lt;/strong&gt; - returns the greater of Value and Value 2&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Dot Product&lt;/strong&gt; Result = Value . Value 2&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Cross Product&lt;/strong&gt; Result = Value ^ Value 2&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Mod&lt;/strong&gt; - returns the remainder of Value / Value 2&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Gain&lt;/strong&gt; -  &lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Step&lt;/strong&gt; - returns 0 if Value 2 &amp;lt; Value, otherwise 1&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Smooth Step&lt;/strong&gt; - returns 0 if Value &amp;lt; 1, 1 if Value 2 &amp;gt; 1, and performs a smooth Hermite interpolation between 0 and 1 in the interval Value to Value 2&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Filter Step&lt;/strong&gt; - returns an analytically antialiased version of Step&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Pow&lt;/strong&gt; - returns Value&lt;sup&gt;Value 2&lt;/sup&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Bias&lt;/strong&gt; -&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;

&lt;h2 id=&quot;examples&quot;&gt;Examples&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;



&lt;p&gt;
These examples show the result of a Binary Operation combining two test patterns—one with horizontal red stripes, the other with vertical blue stripes.
&lt;/p&gt;

&lt;/div&gt;

&lt;h3 id=&quot;add&quot;&gt;Add&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
&lt;a href=&quot;/_media/public/software/dazstudio/4/referenceguide/interface/panes/shader_mixer/bricks/dzbinaryopbrick/surfacemath2ximages.jpg&quot; class=&quot;media&quot; target=&quot;_blank&quot; title=&quot;public:software:dazstudio:4:referenceguide:interface:panes:shader_mixer:bricks:dzbinaryopbrick:surfacemath2ximages.jpg&quot; rel=&quot;noopener&quot;&gt;&lt;img src=&quot;/_media/public/software/dazstudio/4/referenceguide/interface/panes/shader_mixer/bricks/dzbinaryopbrick/surfacemath2ximages.jpg?w=300&amp;amp;tok=38180e&quot; class=&quot;media&quot; alt=&quot;&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h3 id=&quot;subtract&quot;&gt;Subtract&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
&lt;a href=&quot;/_media/public/software/dazstudio/4/referenceguide/interface/panes/shader_mixer/bricks/dzbinaryopbrick/surfacemath2ximagessubtract.jpg&quot; class=&quot;media&quot; target=&quot;_blank&quot; title=&quot;public:software:dazstudio:4:referenceguide:interface:panes:shader_mixer:bricks:dzbinaryopbrick:surfacemath2ximagessubtract.jpg&quot; rel=&quot;noopener&quot;&gt;&lt;img src=&quot;/_media/public/software/dazstudio/4/referenceguide/interface/panes/shader_mixer/bricks/dzbinaryopbrick/surfacemath2ximagessubtract.jpg?w=300&amp;amp;tok=46daba&quot; class=&quot;media&quot; alt=&quot;&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h3 id=&quot;multiply&quot;&gt;Multiply&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
&lt;a href=&quot;/_media/public/software/dazstudio/4/referenceguide/interface/panes/shader_mixer/bricks/dzbinaryopbrick/surfacemath2ximagesmultiply.jpg&quot; class=&quot;media&quot; target=&quot;_blank&quot; title=&quot;public:software:dazstudio:4:referenceguide:interface:panes:shader_mixer:bricks:dzbinaryopbrick:surfacemath2ximagesmultiply.jpg&quot; rel=&quot;noopener&quot;&gt;&lt;img src=&quot;/_media/public/software/dazstudio/4/referenceguide/interface/panes/shader_mixer/bricks/dzbinaryopbrick/surfacemath2ximagesmultiply.jpg?w=300&amp;amp;tok=2aeca0&quot; class=&quot;media&quot; alt=&quot;&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h3 id=&quot;divide&quot;&gt;Divide&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
&lt;a href=&quot;/_media/public/software/dazstudio/4/referenceguide/interface/panes/shader_mixer/bricks/dzbinaryopbrick/surfacemath2ximagesdivide.jpg&quot; class=&quot;media&quot; target=&quot;_blank&quot; title=&quot;public:software:dazstudio:4:referenceguide:interface:panes:shader_mixer:bricks:dzbinaryopbrick:surfacemath2ximagesdivide.jpg&quot; rel=&quot;noopener&quot;&gt;&lt;img src=&quot;/_media/public/software/dazstudio/4/referenceguide/interface/panes/shader_mixer/bricks/dzbinaryopbrick/surfacemath2ximagesdivide.jpg?w=300&amp;amp;tok=ef35a0&quot; class=&quot;media&quot; alt=&quot;&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;
&lt;div class=&quot;footnotes&quot;&gt;
&lt;div class=&quot;fn&quot;&gt;&lt;sup&gt;&lt;a href=&quot;#fnt__1&quot; id=&quot;fn__1&quot; class=&quot;fn_bot&quot;&gt;1)&lt;/a&gt;&lt;/sup&gt; 
&lt;div class=&quot;content&quot;&gt;If Value 2 is 0, it is replaced by .0001 to prevent a divide by zero condition.&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
</description>
    </item>
</rdf:RDF>
