{"id":"dolphin.materials--DolphinSurfaceLight","name":"DolphinSurfaceLight","owner":"dolphin","package":"dolphin.materials","kind":"function","signature":"external DolphinSurfaceLight(dolphinSurface surface,Vector3 normal,Vector3 light,Vector3 radiance) returns Vector3","description":"Dolphin surface light.","context":"Compose linear-color surfaces and shared shading math in ordinary Yeho code.","parameters":[{"name":"surface","type":"dolphinSurface","description":"Supply surface as dolphinSurface."},{"name":"normal","type":"Vector3","description":"Supply normal as Vector3."},{"name":"light","type":"Vector3","description":"Supply light as Vector3."},{"name":"radiance","type":"Vector3","description":"Supply radiance as Vector3."}],"returns":"Vector3","members":[],"tags":["cpu","dolphin","dolphin.materials","function","materials","source-example"],"updated":"2026-09-09","source":{"repository":"dolphin","path":"packages/materials/src/surface.yh","line":37,"sha256":"009f4f147ecdf092eeb6d6c7a20fae2c1b2a351f4cb47a531420e348713e03df"},"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 DolphinSurfaceLight","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using dolphin.materials\n\n// Compose linear-color surfaces and shared shading math in ordinary Yeho code.\ndolphinSurface surface = dolphinSurface(Vector3(1.0, 1.0, 1.0), 0.5, 0.5, 1.0)\nVector3 normal = Vector3(1.0, 1.0, 1.0)\nVector3 light = Vector3(1.0, 1.0, 1.0)\nVector3 radiance = Vector3(1.0, 1.0, 1.0)\nVector3 result = DolphinSurfaceLight(surface, normal, light, radiance)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_materials__dolphinsurfacelight\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\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":"d63f3c4f5baf12495ec49297f9f16e176889b85579fbf64ca3b368f3f472beab","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=dolphin.materials--DolphinSurfaceLight","json":"https://demonhunterlabs.com/reference/items/dolphin.materials--DolphinSurfaceLight.json","markdown":"https://demonhunterlabs.com/reference/text/dolphin.materials--DolphinSurfaceLight.md"}
