{"id":"dolphin.lightlab--DolphinLightLocalDirectSampled","name":"DolphinLightLocalDirectSampled","owner":"dolphin","package":"dolphin.lightlab","kind":"function","signature":"external DolphinLightLocalDirectSampled(dolphinLightWorld world,int shapeIndex,float x,float y,float z,float nx,float ny,float nz,float vx,float vy,float vz,Vector3 albedo,int sample,int pixel,int depth) returns Vector3","description":"Dolphin light local direct sampled.","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":"shapeIndex","type":"int","description":"Supply shape index as int."},{"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."},{"name":"vx","type":"float","description":"Supply vx as float."},{"name":"vy","type":"float","description":"Supply vy as float."},{"name":"vz","type":"float","description":"Supply vz as float."},{"name":"albedo","type":"Vector3","description":"Supply albedo as Vector3."},{"name":"sample","type":"int","description":"Supply sample as int."},{"name":"pixel","type":"int","description":"Supply pixel as int."},{"name":"depth","type":"int","description":"Supply depth as int."}],"returns":"Vector3","members":[],"tags":["cpu","dolphin","dolphin.lightlab","function","lightlab","source-example"],"updated":"2026-09-09","source":{"repository":"dolphin","path":"packages/lightlab/src/local_lights.yh","line":120,"sha256":"7a2fe0dbd5b172ea94fa518c3b9a940dba1fb513b346464b02911f8bd84178d7"},"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 DolphinLightLocalDirectSampled","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 shapeIndex = 1\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 vx = 1.0\nfloat vy = 1.0\nfloat vz = 1.0\nVector3 albedo = Vector3(1.0, 1.0, 1.0)\nint sample = 1\nint pixel = 1\nint depth = 1\nVector3 result = DolphinLightLocalDirectSampled(world, shapeIndex, x, y, z, nx, ny, nz, vx, vy, vz, albedo, sample, pixel, depth)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_lightlab__dolphinlightlocaldirectsampled\"\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":"8ecce1c7ef53c0be744c6e02abb337ebe3784060f753f4b76d5e2d2869c62af9","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=dolphin.lightlab--DolphinLightLocalDirectSampled","json":"https://demonhunterlabs.com/reference/items/dolphin.lightlab--DolphinLightLocalDirectSampled.json","markdown":"https://demonhunterlabs.com/reference/text/dolphin.lightlab--DolphinLightLocalDirectSampled.md"}
