{"id":"dolphin.lightlab--DolphinLightDirect","name":"DolphinLightDirect","owner":"dolphin","package":"dolphin.lightlab","kind":"function","signature":"external DolphinLightDirect(dolphinLightWorld world,float x,float y,float z,float nx,float ny,float nz) returns float","description":"Dolphin light direct.","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":"x","type":"float","description":"Supply x as float."},{"name":"y","type":"float","description":"Supply y as float."},{"name":"z","type":"float","description":"Supply z as float."},{"name":"nx","type":"float","description":"Supply nx as float."},{"name":"ny","type":"float","description":"Supply ny as float."},{"name":"nz","type":"float","description":"Supply nz as float."}],"returns":"float","members":[],"tags":["cpu","dolphin","dolphin.lightlab","function","lightlab","source-example"],"updated":"2026-09-09","source":{"repository":"dolphin","path":"packages/lightlab/src/lightlab.yh","line":324,"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 DolphinLightDirect","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()\nfloat x = 1.0\nfloat y = 1.0\nfloat z = 1.0\nfloat nx = 1.0\nfloat ny = 1.0\nfloat nz = 1.0\nfloat result = DolphinLightDirect(world, x, y, z, nx, ny, nz)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_lightlab__dolphinlightdirect\"\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":"f5d731bc1eb3c3073b890a2c27c8d70b26e25f073db24c22ab4c311b869ec5c6","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=dolphin.lightlab--DolphinLightDirect","json":"https://demonhunterlabs.com/reference/items/dolphin.lightlab--DolphinLightDirect.json","markdown":"https://demonhunterlabs.com/reference/text/dolphin.lightlab--DolphinLightDirect.md"}
