Hi, Abhi,
Below is a manual implementation explained in high details in Python that was done in 2014 (quite old):
Note that this was prior to ray tracing officially supported by VTK in 2016.
Since then, googling led to more recent isolated efforts published in public source repositories:
all the best,
Paulo