{"id":"dolphin.materials--dolphinSurface-4b21f9bb","name":"dolphinSurface","owner":"dolphin","package":"dolphin.materials","kind":"thing","signature":"external thing dolphinSurface","description":"The material values produced when a surface function samples a position: color, roughness, metallic response, and emission.","context":"Compose linear-color surfaces and shared shading math in ordinary Yeho code.","parameters":[],"returns":"void","members":[{"name":"dolphinSurface","kind":"constructor","parameters":[{"name":"color","type":"Vector3","description":"Color."},{"name":"roughness","type":"float","description":"Roughness."},{"name":"metallic","type":"float","description":"Metallic."},{"name":"emission","type":"float","description":"Emission."}],"returns":"void","signature":"dolphinSurface(Vector3 color,float roughness,float metallic,float emission)","description":"Dolphin surface.","tags":["thing","constructor","dolphin.materials"],"updated":"2026-09-09"}],"tags":["cpu","dolphin","dolphin.materials","materials","source-example","thing"],"updated":"2026-09-09","source":{"repository":"dolphin","path":"packages/materials/src/surface.yh","line":6,"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.\ndolphinSurface sample = dolphinSurface(Vector3(1.0, 1.0, 1.0), 0.5, 0.5, 1.0)\nConsole.Log(\"Created dolphinSurface\")\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":"e77d4f33acbe7f7d875ba4c2e629e67e592de11f0be8c71905cc7f33d4bad15c","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["dolphinSurface"],"url":"https://demonhunterlabs.com/academy/api?item=dolphin.materials--dolphinSurface-4b21f9bb","json":"https://demonhunterlabs.com/reference/items/dolphin.materials--dolphinSurface-4b21f9bb.json","markdown":"https://demonhunterlabs.com/reference/text/dolphin.materials--dolphinSurface-4b21f9bb.md"}
