Nodo Rayos de sol¶
The Sun Beams node provides a cheap way of adding sun beams based on image brightness alone.
Sun Beams is a 2D effect for simulating the effect of bright light getting scattered in a medium (Crepuscular Rays). This phenomenon can be created by renderers, but full volumetric lighting is a rather arduous approach and takes a long time to render.
Entradas¶
- Imagen
Entrada de color estándar.
Propiedades¶
- Ancho, Altura de origen
Punto de origen de los rayos como un factor de las dimensiones de la imagen.
- Longitud del rayo
Longitud de los rayos como un factor del tamaño de la imagen.
Salidas¶
- Imagen
Salida de color estándar.
Ejemplo¶
Usually, the first step is to define the area from which rays are cast. Any diffuse reflected light from surfaces is not going to contribute to such scattering in the real world, so should be excluded from the input data. Possible ways to achieve this are:
Entirely separate image as a light source.
Brightness/contrast tweaking to leave only the brightest areas.
Muting shadow and midtone colors, which is a bit more flexible.
Masking for ultimate control.
After generating the sun beams from such a light source image they can then be overlaid on the original image. Usually, a simple «Add» Mix node is sufficient, and physically correct because the scattered light adds to the final result.