{"id":"dolphin.materials--DolphinSurface-5f425bdb","name":"DolphinSurface","owner":"dolphin","package":"dolphin.materials","kind":"function","signature":"external DolphinSurface(Vector3 color,float roughness,float metallic,float emission) returns dolphinSurface","description":"Create a surface from linear RGB color, roughness, metallic response, and emission. The helper clamps these properties to its supported ranges.","context":"Compose linear-color surfaces and shared shading math in ordinary Yeho code.","parameters":[{"name":"color","type":"Vector3","description":"Supply color as Vector3."},{"name":"roughness","type":"float","description":"Supply roughness as float."},{"name":"metallic","type":"float","description":"Supply metallic as float."},{"name":"emission","type":"float","description":"Supply emission as float."}],"returns":"dolphinSurface","members":[],"tags":["cpu","dolphin","dolphin.materials","function","materials","source-example"],"updated":"2026-09-09","source":{"repository":"dolphin","path":"packages/materials/src/surface.yh","line":12,"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 DolphinSurface","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.\nVector3 color = Vector3(1.0, 1.0, 1.0)\nfloat roughness = 0.5\nfloat metallic = 0.5\nfloat emission = 1.0\ndolphinSurface result = DolphinSurface(color, roughness, metallic, emission)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_materials__dolphinsurface\"\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":"a8431541336e5f68de40cb048114bffe00dd658d15e364a361a01b2feafceb15","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=dolphin.materials--DolphinSurface-5f425bdb","json":"https://demonhunterlabs.com/reference/items/dolphin.materials--DolphinSurface-5f425bdb.json","markdown":"https://demonhunterlabs.com/reference/text/dolphin.materials--DolphinSurface-5f425bdb.md"}
