<div dir="ltr"><div>Hi,</div><div><br></div>I can&#39;t tell you what could be wrong in your branch because it&#39;s nowhere published and i can&#39;t give cleaner answer where the variables are used than grep will do it:<div><br></div><div>grep -wR &quot;has_surface&quot; .<br></div><div>grep -wR &quot;has_surface_emission&quot; .<br></div><div><br></div><div>and so on.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 31, 2016 at 5:26 PM, Mohamed Sakr <span dir="ltr">&lt;<a href="mailto:3dsakr@gmail.com" target="_blank">3dsakr@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I wonder where are these flags used? Shader::has_surface,<br>
has_surface_emission, ...etc..<br>
the reason to ask:<br>
I checked my branch against Blender, the scene is pretty simple.<br>
2 cubes which got only emission to surface, first cube is (255 50 0),<br>
second is (153 255 0)<br>
<br>
inside Blender results appear correctly &quot;same chosen color&quot;<br>
inside my branch results appear wrong &quot;for example with increased<br>
emission strength, values go toward 255 255 0 ..&quot;<br>
<br>
any idea if these flags are responsible for this? or anything else<br>
that is missing in my Shader?<br>
I debugged input values and they are correct.<br>
<br>
cheers,<br>
Mohamed Sakr<br>
_______________________________________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
<a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">https://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div><span style="color:rgb(102,102,102)">With best regards, Sergey Sharybin</span></div></div>
</div>