# Module: tfg.rendering.volumetric.ray_density

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/rendering/volumetric/ray_density.py) |

This module implements the radiance-based ray rendering.

## Functions

[`compute_density(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/rendering/volumetric/ray_density/compute_density): Renders the density values (alpha) for points along a ray, as described in ["NeRF Representing Scenes as Neural Radiance Fields for View Synthesis"](https://github.com/bmild/nerf).