{"id":"dolphin.lightlab--dolphinLightWorld","name":"dolphinLightWorld","owner":"dolphin","package":"dolphin.lightlab","kind":"class","signature":"external class dolphinLightWorld","description":"A dolphin light world record carrying shapes, lights, coastalEnvironment, nodes, sunx, and related state.","context":"Build bounded lighting experiments with geometry, visibility, transport, film, and GPU/CPU contracts.","parameters":[],"returns":"void","members":[{"name":"shapes","kind":"field","type":"list of dolphinLightShape","description":"Stores shapes as list of dolphinLightShape.","signature":"list of dolphinLightShape shapes","tags":["class","field","dolphin.lightlab"],"updated":"2026-09-09"},{"name":"lights","kind":"field","type":"list of dolphinLocalLight","description":"Stores lights as list of dolphinLocalLight.","signature":"list of dolphinLocalLight lights","tags":["class","field","dolphin.lightlab"],"updated":"2026-09-09"},{"name":"coastalEnvironment","kind":"field","type":"bool","description":"Stores coastal environment as bool.","signature":"bool coastalEnvironment","tags":["class","field","dolphin.lightlab"],"updated":"2026-09-09"},{"name":"nodes","kind":"field","type":"list of dolphinLightNode","description":"Stores nodes as list of dolphinLightNode.","signature":"list of dolphinLightNode nodes","tags":["class","field","dolphin.lightlab"],"updated":"2026-09-09"},{"name":"sunx","kind":"field","type":"float","description":"Stores sunx as float.","signature":"float sunx","tags":["class","field","dolphin.lightlab"],"updated":"2026-09-09"},{"name":"sunRadius","kind":"field","type":"float","description":"Stores sun radius as float.","signature":"float sunRadius","tags":["class","field","dolphin.lightlab"],"updated":"2026-09-09"},{"name":"maxBounces","kind":"field","type":"int","description":"Stores max bounces as int.","signature":"int maxBounces","tags":["class","field","dolphin.lightlab"],"updated":"2026-09-09"},{"name":"localShadowSamples","kind":"field","type":"int","description":"Stores local shadow samples as int.","signature":"int localShadowSamples","tags":["class","field","dolphin.lightlab"],"updated":"2026-09-09"},{"name":"rays","kind":"field","type":"int","description":"Stores rays as int.","signature":"int rays","tags":["class","field","dolphin.lightlab"],"updated":"2026-09-09"},{"name":"dolphinLightWorld","kind":"constructor","parameters":[],"returns":"void","signature":"dolphinLightWorld()","description":"Dolphin light world.","tags":["class","constructor","dolphin.lightlab"],"updated":"2026-09-09"},{"name":"Group","kind":"method","parameters":[],"returns":"void","signature":"Group()","description":"Group.","tags":["class","method","dolphin.lightlab"],"exampleId":"method-Group-10","updated":"2026-09-09"},{"name":"AppendLight","kind":"method","parameters":[{"name":"sourceShape","type":"int","description":"Source shape."},{"name":"x","type":"float","description":"X."},{"name":"y","type":"float","description":"Y."},{"name":"z","type":"float","description":"Z."},{"name":"r","type":"float","description":"R."},{"name":"g","type":"float","description":"G."},{"name":"b","type":"float","description":"B."},{"name":"intensity","type":"float","description":"Intensity."},{"name":"radius","type":"float","description":"Radius."}],"returns":"bool","signature":"AppendLight(int sourceShape,float x,float y,float z,float r,float g,float b,float intensity,float radius) returns bool","description":"Append light.","tags":["class","method","dolphin.lightlab"],"exampleId":"method-AppendLight-11","updated":"2026-09-09"},{"name":"AppendShape","kind":"method","parameters":[{"name":"id","type":"int","description":"Id."},{"name":"kind","type":"int","description":"Kind."},{"name":"mat","type":"int","description":"Mat."},{"name":"components","type":"int","description":"Components."},{"name":"x","type":"float","description":"X."},{"name":"y","type":"float","description":"Y."},{"name":"z","type":"float","description":"Z."},{"name":"sx","type":"float","description":"Sx."},{"name":"sy","type":"float","description":"Sy."},{"name":"sz","type":"float","description":"Sz."},{"name":"yaw","type":"float","description":"Yaw."}],"returns":"void","signature":"AppendShape(int id,int kind,int mat,int components,float x,float y,float z,float sx,float sy,float sz,float yaw)","description":"Append shape.","tags":["class","method","dolphin.lightlab"],"exampleId":"method-AppendShape-12","updated":"2026-09-09"},{"name":"AppendAffineShape","kind":"method","parameters":[{"name":"id","type":"int","description":"Id."},{"name":"kind","type":"int","description":"Kind."},{"name":"mat","type":"int","description":"Mat."},{"name":"components","type":"int","description":"Components."},{"name":"center","type":"Vector3","description":"Center."},{"name":"sx","type":"float","description":"Sx."},{"name":"sy","type":"float","description":"Sy."},{"name":"sz","type":"float","description":"Sz."},{"name":"basis","type":"dolphinAffine3","description":"Basis."}],"returns":"void","signature":"AppendAffineShape(int id,int kind,int mat,int components,Vector3 center,float sx,float sy,float sz,dolphinAffine3 basis)","description":"Append affine shape.","tags":["class","method","dolphin.lightlab"],"exampleId":"method-AppendAffineShape-13","updated":"2026-09-09"},{"name":"AddShape","kind":"method","parameters":[{"name":"shape","type":"dolphinLightShape","description":"Shape."}],"returns":"void","signature":"AddShape(dolphinLightShape shape)","description":"Add shape.","tags":["class","method","dolphin.lightlab"],"exampleId":"method-AddShape-14","updated":"2026-09-09"}],"tags":["class","cpu","dolphin","dolphin.lightlab","lightlab","method","source-example"],"updated":"2026-09-09","source":{"repository":"dolphin","path":"packages/lightlab/src/lightlab.yh","line":26,"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 dolphinLightWorld","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 sample = dolphinLightWorld()\nConsole.Log(Text.From(sample.coastalEnvironment))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_lightlab__dolphinlightworld\"\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":"9d74b0bfe67a29b97f38520ca6e1dbc34505ff6d6e3e123a82f57451100b6b1e","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Group-10","title":"dolphinLightWorld.Group","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using dolphin.lightlab\n\n// Group.\ndolphinLightWorld instance = dolphinLightWorld()\ninstance.Group()\nConsole.Log(\"Group completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_lightlab__dolphinlightworld\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"b8d4b20a4ab6bdd5c440389aa24a76441f785331080f1bc4b0e66864233e213e","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-AppendLight-11","title":"dolphinLightWorld.AppendLight","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using dolphin.lightlab\n\n// Append light.\ndolphinLightWorld instance = dolphinLightWorld()\nint argument_sourceShape = 1\nfloat argument_x = 1.0\nfloat argument_y = 1.0\nfloat argument_z = 1.0\nfloat argument_r = 1.0\nfloat argument_g = 1.0\nfloat argument_b = 1.0\nfloat argument_intensity = 1.0\nfloat argument_radius = 1.0\nbool result = instance.AppendLight(argument_sourceShape, argument_x, argument_y, argument_z, argument_r, argument_g, argument_b, argument_intensity, argument_radius)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_lightlab__dolphinlightworld\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"c1f72f270c7abf1a597e2b7a276586ad0f3865f5ad96933ca05a0eeb55a425e6","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-AppendShape-12","title":"dolphinLightWorld.AppendShape","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using dolphin.lightlab\n\n// Append shape.\ndolphinLightWorld instance = dolphinLightWorld()\nint argument_id = 1\nint argument_kind = 1\nint argument_mat = 1\nint argument_components = 1\nfloat argument_x = 1.0\nfloat argument_y = 1.0\nfloat argument_z = 1.0\nfloat argument_sx = 1.0\nfloat argument_sy = 1.0\nfloat argument_sz = 1.0\nfloat argument_yaw = 1.0\ninstance.AppendShape(argument_id, argument_kind, argument_mat, argument_components, argument_x, argument_y, argument_z, argument_sx, argument_sy, argument_sz, argument_yaw)\nConsole.Log(\"AppendShape completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_lightlab__dolphinlightworld\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"7167ec13a99d5b786caa93a80dda98c643aca9d9d4a2de277bf3a43534015e3c","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-AppendAffineShape-13","title":"dolphinLightWorld.AppendAffineShape","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using dolphin.lightlab\n\n// Append affine shape.\ndolphinLightWorld instance = dolphinLightWorld()\nint argument_id = 1\nint argument_kind = 1\nint argument_mat = 1\nint argument_components = 1\nVector3 argument_center = Vector3(1.0, 1.0, 1.0)\nfloat argument_sx = 1.0\nfloat argument_sy = 1.0\nfloat argument_sz = 1.0\ndolphinAffine3 argument_basis = dolphinAffine3()\ninstance.AppendAffineShape(argument_id, argument_kind, argument_mat, argument_components, argument_center, argument_sx, argument_sy, argument_sz, argument_basis)\nConsole.Log(\"AppendAffineShape completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_lightlab__dolphinlightworld\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"ad05eb83825cc143eea9d3e66fa8d64ebd71187272cbdb708b0a32bd55a97e81","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-AddShape-14","title":"dolphinLightWorld.AddShape","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using dolphin.lightlab\n\n// Add shape.\ndolphinLightWorld instance = dolphinLightWorld()\ndolphinLightShape argument_shape = dolphinLightShape(1, 1, 1, 1, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0)\ninstance.AddShape(argument_shape)\nConsole.Log(\"AddShape completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_lightlab__dolphinlightworld\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"1d9106d1c64a4222e34b178c3c5394f8f1d841f7e5264c41987812e4680295a6","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["shapes","lights","coastalEnvironment","nodes","sunx","sunRadius","maxBounces","localShadowSamples","rays","dolphinLightWorld","Group","AppendLight","AppendShape","AppendAffineShape","AddShape"],"url":"https://demonhunterlabs.com/academy/api?item=dolphin.lightlab--dolphinLightWorld","json":"https://demonhunterlabs.com/reference/items/dolphin.lightlab--dolphinLightWorld.json","markdown":"https://demonhunterlabs.com/reference/text/dolphin.lightlab--dolphinLightWorld.md"}
