pan><span class="identifier">refracted</span><span>, </span><span class="identifier">reflected</span><span>, </span><span class="identifier">fresnel</span><span>)

        </span><span class="keyword">val</span><span> </span><span class="identifier">atten</span><span>: </span><span class="type-name">Float</span><span> = </span><span class="identifier">max</span><span>(</span><span class="number-literal">1.0f</span><span> - </span><span class="identifier">dot</span><span>(</span><span class="identifier">dist