{"id":"dolphin.lightlab--DolphinLightTriangle","name":"DolphinLightTriangle","owner":"dolphin","package":"dolphin.lightlab","kind":"function","signature":"external DolphinLightTriangle(dolphinLightWorld world,int id,int material,int components,Vector3 a,Vector3 b,Vector3 c) returns bool","description":"A triangle is an affine image of (-1,-.5,0), (1,-.5,0), (0,.5,0). It shares the existing BVH and inverse-transpose normal path. There is no scene-specific visibility shortcut or heightfield march budget.","context":"Build bounded lighting experiments with geometry, visibility, transport, film, and GPU/CPU contracts.","parameters":[{"name":"world","type":"dolphinLightWorld","description":"Supply world as dolphinLightWorld."},{"name":"id","type":"int","description":"Supply id as int."},{"name":"material","type":"int","description":"Supply material as int."},{"name":"components","type":"int","description":"Supply components as int."},{"name":"a","type":"Vector3","description":"Supply a as Vector3."},{"name":"b","type":"Vector3","description":"Supply b as Vector3."},{"name":"c","type":"Vector3","description":"Supply c as Vector3."}],"returns":"bool","members":[],"tags":["cpu","dolphin","dolphin.lightlab","function","lightlab","source-example"],"updated":"2026-09-09","source":{"repository":"dolphin","path":"packages/lightlab/src/triangles.yh","line":7,"sha256":"be84b02dd88c6d3816000fb779f476acafd4803ae363ece5c00a302fa7ea68df"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use DolphinLightTriangle","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using dolphin.lightlab\n\n// Build bounded lighting experiments with geometry, visibility, transport, film, and GPU/CPU contracts.\ndolphinLightWorld world = dolphinLightWorld()\nint id = 1\nint material = 1\nint components = 1\nVector3 a = Vector3(1.0, 1.0, 1.0)\nVector3 b = Vector3(1.0, 1.0, 1.0)\nVector3 c = Vector3(1.0, 1.0, 1.0)\nbool result = DolphinLightTriangle(world, id, material, components, a, b, c)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_lightlab__dolphinlighttriangle\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"dolphin.lightlab\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/lightlab\"\n\n[[dependencies]]\npackage = \"dolphin.materials\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/materials\"\n\n[[dependencies]]\npackage = \"dolphin.math\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/math\"\n\n[[dependencies]]\npackage = \"dolphin.spatial3d\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/spatial3d\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"41b78e6002f3ff3c776fcba029f54e087c329b9532a2d58909f5b4d745ea90be","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=dolphin.lightlab--DolphinLightTriangle","json":"https://demonhunterlabs.com/reference/items/dolphin.lightlab--DolphinLightTriangle.json","markdown":"https://demonhunterlabs.com/reference/text/dolphin.lightlab--DolphinLightTriangle.md"}
