---
title: "Volumetric Rays"
url: "https://help.maxon.net/ag/en-us/Content/html/Modifier_image_stylize_volrays.html"
section_path: "Modifiers > Image > Stylize > Volumetric Rays"
description: "Similar to God Rays but with more options to create lighting effects radiating from Position parameter."
---

# Volumetric Rays

## Brief Description

Similar to [God Rays](https://help.maxon.net/ag/en-us/Content/html/Modifier_image_stylize_godrays.html.md) but with more options to create lighting effects radiating from Position parameter.

## Controls

| Parameter / Script Name | Type | Default | Function |
| --- | --- | --- | --- |
| `Enabled / enabled` | Boolean | On |  |
| `Red / process_red` | Boolean | On | Enable the red channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0 |
| `Green / process_green` | Boolean | On | Enable the green channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0 |
| `Blue / process_blue` | Boolean | On | Enable the blue channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0 |
| `Alpha / process_alpha` | Boolean | On | Enable the alpha channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0 |
| `Mode / mode` | Choice | Luminance | - *Luminance*: Generate rays based on the input luminance<br>- *Alpha Edges*: Generate rays based on the alpha contour of the source<br>- *Alpha*: Generate rays based on the raw input image alpha channel<br>- *Alpha Masking*: Generate rays based on the raw input image alpha channel but masked outside alpha |
| `Luma Tolerance / lumaTolerance` | Float | 0 | Threshold on luminance where values below it do not produce rays |
| `Edge Size / edgeSize` | Float | 0 | Thickness of the alpha channel edge. Increasing this value decreases rays generated outside the edges |
| `Edge Blur / edgeBlur` | Float 2D | 3, 3 |  |
| `Position / position` | Float 2D | 0, 0 |  |
| `Ray Length / rayLength` | Float 2D | 20, 20 |  |
| `Ray Pre-Blur / rayPreBlur` | Float | 0 |  |
| `Color Ramp Mode / interp_mode` | Choice | Linear (Average Alpha) | - *Gamma Ramp*<br>- *Linear (Average Alpha)*<br>- *Linear (Stack Alpha)* |
| `Add To Source / addOnTop` | Boolean | Off |  |
| `Quality / quality` | Float | 7 |  |
| `Enable Flickering / enableFlickering` | Boolean | On |  |
| `Flicker Speed / flickerSpeed` | Float | 2 |  |
| `Flicker Size / flickerSize` | Float | 40 |  |
| `Transform Noise / transformNoise` | Boolean | Off |  |
| `Desaturate / desaturate` | Boolean | Off |  |
| `Gain / gain` | Color | 1, 1, 1, 1 |  |
| `Gamma / gamma` | Color | 1, 1, 1, 1 |  |
| `From Color / fromColor` | Color | 1, 1, 1, 1 |  |
| `To Color / toColor` | Color | 0, 0, 0, 0 |  |
| `Enable Radial Falloff / enableFalloff` | Boolean | Off |  |
| `Radial Size / radialSize` | Float | 500 |  |
| `Radial Fall-Off / radialFalloff` | Float | 1 |  |
| `Crop To Composition Format / cropToComp` | Boolean | On |  |
| `Transform Mask / transformMask` | Boolean | Off |  |
| `Rays Generation Mask / raysGenMask` | Image | - | Limit generated rays origin to the mask alpha channel |
| `Mask Blur / maskBlur` | Float | 0 |  |
| `Mask / mask` | Image | - |  |
| `Mix / mix_with_source` | Float | 1 | Dissolves between the original image at 0 and the image with the effect applied at 1 |
