Hi Clement,

On 15 September 2017 at 02:57, <[email protected]> wrote:

>    I am using volume rendering with ray traced technique.  I saw black
> color along the edge of image.  I checked the shader code.  There is a
> variable called fragColor and initial value is set to  vec4(0.0, 0.0, 0.0,
> 0.0);.  I would like to know why this value is using black on initial.
> Should we use background colour for the initial?  Thanks.
>

Look at the shader - it accumulates the colour contributions along the ray
so you have to start with 0.  You wouldn't do a summation of sequence
without starting at zero, so it's the same for accumulating the colour.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to