{"id":"dolphin.materials--DolphinSurfaceMix","name":"DolphinSurfaceMix","owner":"dolphin","package":"dolphin.materials","kind":"function","signature":"external DolphinSurfaceMix(Vector3 a,Vector3 b,float weight) returns Vector3","description":"Blend two linear RGB colors by a scalar amount.","context":"Compose linear-color surfaces and shared shading math in ordinary Yeho code.","parameters":[{"name":"a","type":"Vector3","description":"Supply a as Vector3."},{"name":"b","type":"Vector3","description":"Supply b as Vector3."},{"name":"weight","type":"float","description":"Supply weight as float."}],"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":18,"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 DolphinSurfaceMix","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 a = Vector3(1.0, 1.0, 1.0)\nVector3 b = Vector3(1.0, 1.0, 1.0)\nfloat weight = 1.0\nVector3 result = DolphinSurfaceMix(a, b, weight)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_materials__dolphinsurfacemix\"\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":"342c8cb42016bfbb6562cbfb5009cefe20d94b9c0f5ca7db692559539b67918c","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=dolphin.materials--DolphinSurfaceMix","json":"https://demonhunterlabs.com/reference/items/dolphin.materials--DolphinSurfaceMix.json","markdown":"https://demonhunterlabs.com/reference/text/dolphin.materials--DolphinSurfaceMix.md"}
