LightsprintSDK 2021.08.08
Triangle or Vertex

Triangle or Vertex illumination query 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

  • If you need information only for small subset of scene, querying single triangle is much faster than generating complete lightmap or vertex color buffer for whole object and reading value from it.
  • Even if you have lightmap or vertex buffer generated, it could be easier to use this query than searching individual value in vertex buffer/lightmap.

Disadvantages

  • Not demonstrated in samples yet.

Query

Returned value