
27117.6 WebGL Implementation
17.6.6 Drawing Slice from the Point of View of Eye
We now detail the drawing function to render slices from the point of view of eye. In this
function, we pass two parameters, the index of the current slice (i) and a Boolean ag
that tells if the view direction vector is inverted. We rst set the appropriate draw buer
(eyebuffer). When the view direction vector is inverted, the Under blending opera-
tor is used, which is (gl.blendFunc(gl.ONE_MINUS_DST_ALPHA, gl.ONE)).
is ensures that the slices are always sorted in front-to-back order whenrendered from
the point of view of eye. is blending operator is used when ...