title: Translating GLSL to C++ float / vec3?
body: <p>What does this line exactly do</p>
  
  <pre><code>ra.rgb * ra.w / max(ra.r, 1e-4) * (bR.r / bR);
  </code></pre>
  
  <p>The part I am confused about is how to translate </p>
  
  <pre><code>(bR.r / bR);
  </code></pre>
  
  <p>A float divided by a vec3?
  I want to translate this to C++ but what is that returning a float divided by all the elements of the vector? etc</p>
  
  <p>(no access to graphics card to check?)</p>