{"id":"dolphin.lightlab--dolphinLightHit","name":"dolphinLightHit","owner":"dolphin","package":"dolphin.lightlab","kind":"thing","signature":"external thing dolphinLightHit","description":"A dolphin light hit record carrying distance.","context":"Build bounded lighting experiments with geometry, visibility, transport, film, and GPU/CPU contracts.","parameters":[],"returns":"void","members":[{"name":"distance","kind":"field","type":"float","description":"Stores distance as float.","signature":"float distance","tags":["thing","field","dolphin.lightlab"],"updated":"2026-09-09"},{"name":"dolphinLightHit","kind":"constructor","parameters":[{"name":"distance","type":"float","description":"Distance."},{"name":"nx","type":"float","description":"Nx."},{"name":"ny","type":"float","description":"Ny."},{"name":"nz","type":"float","description":"Nz."},{"name":"shape","type":"int","description":"Shape."}],"returns":"void","signature":"dolphinLightHit(float distance,float nx,float ny,float nz,int shape)","description":"Dolphin light hit.","tags":["thing","constructor","dolphin.lightlab"],"updated":"2026-09-09"}],"tags":["cpu","dolphin","dolphin.lightlab","lightlab","source-example","thing"],"updated":"2026-09-09","source":{"repository":"dolphin","path":"packages/lightlab/src/lightlab.yh","line":7,"sha256":"150a7e55b88ac40444f2c9ea005ae60d9fe72e2193851e48a2c8ab7b22bfd12b"},"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 dolphinLightHit","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.\ndolphinLightHit sample = dolphinLightHit(1.0, 1.0, 1.0, 1.0, 1)\nConsole.Log(Text.From(sample.distance))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_lightlab__dolphinlighthit\"\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":"40f817503673b855b8f01403b4d26f17dd7c892b1d539dce91653f92ebd1937f","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["distance","dolphinLightHit"],"url":"https://demonhunterlabs.com/academy/api?item=dolphin.lightlab--dolphinLightHit","json":"https://demonhunterlabs.com/reference/items/dolphin.lightlab--dolphinLightHit.json","markdown":"https://demonhunterlabs.com/reference/text/dolphin.lightlab--dolphinLightHit.md"}
