fast::AlphaBlendingVolumeRenderer class

Renders 3D images/volumes using ray-casting and alpha blending.

Rays are cast back to front, accumulating color along the way based on a provided TransferFunction

Base classes

class VolumeRenderer
Abstract base class for volume renderers.

Public functions

void setTransferFunction(TransferFunction transferFunction)

Protected functions

void draw(Matrix4f perspectiveMatrix, Matrix4f viewingMatrix, float zNear, float zFar, bool mode2D, int viewWidth, int viewHeight) override

Protected variables

TransferFunction m_transferFunction

Function documentation

void fast::AlphaBlendingVolumeRenderer::setTransferFunction(TransferFunction transferFunction)


Set transfer function to use during alpha blending