LightsprintSDK 2021.08.08
Ray

Query for illumination at the end of ray is designed for AI and other subsystems that need very fast access to single value (e.g. AI trying to find dark corner for hiding).

Suitable for

  • static objects: YES
  • dynamic objects: NO
  • realtime calculated illumination: YES
  • precalculated illumination: YES

Advantages

  • Fast access to single value.

Disadvantages

  • Not demonstrated in samples yet.

Query

  • Call RRSolver::getMultiObjectCustom()->getCollider()->intersect() to find static triangle at the end of ray.
  • See Triangle or Vertex for access to triangle's illumination.

Returned value