Mesh lightsΒΆ

Guerilla can use any polygonal object as a light source. It becomes then a mesh light.

The mesh lights are carefully sampled and generate less noise than the emissive objects. In turn, a large number of mesh lights may slow down the renderer.

An emissive teapot, the same teapot turned into a mesh light.

Turn a polygon object into a mesh light
  1. Select the object to turn into a mesh light.
  2. Use the command Modify > Mesh Light > Set as Mesh Light
Turn back a mesh light into a polygon object
  1. Select the mesh light to turn back into an object.
  2. Use the command Modify > Mesh Light > Unset as Light
Turn a polygon object into a mesh light using the RenderGraph
  1. Add a LightAttributes node in the object flow.
  2. Force Light > On to checked.
  3. Force Light > Light Set and Light > Shadow Set to Lights and Shadows.
You can use different values for the light and shadow sets, just make sure these values are overriden in the RenderGraph. Use MeshLight preset from the library to easily turn an objet into a light.