{"id":"runtime--Graphics3D.SetSunLightV1","name":"Graphics3D.SetSunLightV1","owner":"yeho","package":"runtime.Graphics3D","kind":"builtin","signature":"Graphics3D.SetSunLightV1(float red, float green, float blue, float intensity) -> bool","description":"Set sun light v1 through the Graphics3D runtime.","context":"Built into Yeho; no package import is needed. Native services require an admitted host and the correct resource lifecycle.","parameters":[{"name":"red","type":"float","description":"Supply red as float.","rule":"Float32"},{"name":"green","type":"float","description":"Supply green as float.","rule":"Float32"},{"name":"blue","type":"float","description":"Supply blue as float.","rule":"Float32"},{"name":"intensity","type":"float","description":"Supply intensity as float.","rule":"Float32"}],"returns":"bool","members":[],"tags":["builtin","cpu","graphics3d","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"src/compiler/common/intrinsic_registry.cpp","line":1462,"sha256":"14d29529d2d3c0e2b587f83c7f125b99ada142ed7ae28612701ea6cb9174ac65"},"status":"registered-intrinsic","notes":["The example checks the call shape. Opening windows, recording audio, changing files, network operations, and process operations have real effects when run. Follow the corresponding package lifecycle before using live resources."],"examples":[{"id":"usage","title":"Call Graphics3D.SetSunLightV1","description":"A complete typed caller with illustrative arguments. Native operations need the corresponding host and resources.","code":"float red = 1.0\nfloat green = 1.0\nfloat blue = 1.0\nfloat intensity = 1.0\nbool result = Graphics3D.SetSunLightV1(red, green, blue, intensity)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.runtime__graphics3d_setsunlightv1\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","tags":["cpu","builtin"],"run":"cpu-oracle","verification":"type checked","sha256":"ceebe203e04833bd9ee2f7d20e2a97054c594fa1e0db1e5a9ea447259dd895a3","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=runtime--Graphics3D.SetSunLightV1","json":"https://demonhunterlabs.com/reference/items/runtime--Graphics3D.SetSunLightV1.json","markdown":"https://demonhunterlabs.com/reference/text/runtime--Graphics3D.SetSunLightV1.md"}
