{"id":"dolphin.lightlab--DolphinBuildEnvironmentMap","name":"DolphinBuildEnvironmentMap","owner":"dolphin","package":"dolphin.lightlab","kind":"function","signature":"external DolphinBuildEnvironmentMap(buffer of int domain,buffer of float output,int side,float sunx,float suny,float sunz,float time,float coverage,float wind,int octaves) returns bool","description":"Dolphin build environment map.","context":"Build bounded lighting experiments with geometry, visibility, transport, film, and GPU/CPU contracts.","parameters":[{"name":"domain","type":"buffer of int","description":"Supply domain as buffer of int."},{"name":"output","type":"buffer of float","description":"Supply output as buffer of float."},{"name":"side","type":"int","description":"Supply side as int."},{"name":"sunx","type":"float","description":"Supply sunx as float."},{"name":"suny","type":"float","description":"Supply suny as float."},{"name":"sunz","type":"float","description":"Supply sunz as float."},{"name":"time","type":"float","description":"Supply time as float."},{"name":"coverage","type":"float","description":"Supply coverage as float."},{"name":"wind","type":"float","description":"Supply wind as float."},{"name":"octaves","type":"int","description":"Supply octaves as int."}],"returns":"bool","members":[],"tags":["cpu","dolphin","dolphin.lightlab","function","lightlab","source-example"],"updated":"2026-09-09","source":{"repository":"dolphin","path":"packages/lightlab/src/environment.yh","line":62,"sha256":"f269cf7c34adee69943ce9debc1cfff556f5ff189fdba670bfa90f922c0a046f"},"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 DolphinBuildEnvironmentMap","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.\nbuffer of int domain\ndomain.Resize(8)\nbuffer of float output\noutput.Resize(8)\nint side = 1\nfloat sunx = 1.0\nfloat suny = 1.0\nfloat sunz = 1.0\nfloat time = 1.0\nfloat coverage = 1.0\nfloat wind = 1.0\nint octaves = 1\nbool result = DolphinBuildEnvironmentMap(domain, output, side, sunx, suny, sunz, time, coverage, wind, octaves)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_lightlab__dolphinbuildenvironmentmap\"\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":"ca6cbc638264c8b0139e95808a494dfdc894e06c118dcc41c4e1c5e7a4b024ca","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=dolphin.lightlab--DolphinBuildEnvironmentMap","json":"https://demonhunterlabs.com/reference/items/dolphin.lightlab--DolphinBuildEnvironmentMap.json","markdown":"https://demonhunterlabs.com/reference/text/dolphin.lightlab--DolphinBuildEnvironmentMap.md"}
