ALS technical notes: Difference between revisions

Jump to navigation Jump to search
Line 154: Line 154:


=== Glossy surfaces ===
=== Glossy surfaces ===
To better treat the environment reflections on a glossy surface, ALS contains two options not present in the other renderers.
<syntaxhighlight lang="xml">
<reflection-type type="int">1</reflection-type>
</syntaxhighlight>
This parameter can currently be set to 1 or 2 and regulates how the color of the environment reflection is merged with the color of the glossy surface. If set to 1, the shader uses a color mixing as in the other two renderers, if set to 2 it uses a technique called 'grain merge' which gives different weight to the color channels.
<syntaxhighlight lang="xml">
<reflection-fresnel-factor type="float">0.0</reflection-fresnel-factor>
</syntaxhighlight>
This parameter regulates how strong the Fresnel term of a glossy surface is. Many smooth surfaces reflect much more under shallow angles such that an environment reflection is not very prominent when looking under 90 degrees but dominates the visuals when looking under a grazing angle. The parameter sets the relative strength of a Fresnel reflection with respect to the basic reflection definition which is assumed to hold for vertical viewing (i.e. setting the parameter to 0.8 gives you extra glossiness under shallow angles).


== The exhaust flame effect ==
== The exhaust flame effect ==
1,360

edits

Navigation menu