{"id":"graphics.render3d--SetGraphics3DSunLightV1","name":"SetGraphics3DSunLightV1","owner":"yeho","package":"graphics.render3d","kind":"function","signature":"external SetGraphics3DSunLightV1(float red, float green, float blue, float intensity) returns bool","description":"Colors are bounded to 0..1. Intensity is bounded to 0..4 and is folded into the sun contribution once when configured, not recalculated by applications or exposed as provider state. Direction remains owned by SetGraphics3DLightDirection.","context":"Use bounded hardware 3D resources, meshes, cameras, lights, and draw commands.","parameters":[{"name":"red","type":"float","description":"Supply red as float."},{"name":"green","type":"float","description":"Supply green as float."},{"name":"blue","type":"float","description":"Supply blue as float."},{"name":"intensity","type":"float","description":"Supply intensity as float."}],"returns":"bool","members":[],"tags":["cpu","function","graphics","graphics.render3d","render3d","source-example","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/graphics/render3d/render3d.yh","line":137,"sha256":"e98990c02e455ccc99829eefd52831a8b724534b82b7be2ffd8d0263d52b834c"},"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 SetGraphics3DSunLightV1","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using graphics.render3d\n\n// Use bounded hardware 3D resources, meshes, cameras, lights, and draw commands.\nfloat red = 1.0\nfloat green = 1.0\nfloat blue = 1.0\nfloat intensity = 1.0\nbool result = SetGraphics3DSunLightV1(red, green, blue, intensity)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.graphics_render3d__setgraphics3dsunlightv1\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.render3d\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/render3d\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"19bb1c41c5866a193068e9335fad343e221915047302442b7e8a415a8d36589b","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=graphics.render3d--SetGraphics3DSunLightV1","json":"https://demonhunterlabs.com/reference/items/graphics.render3d--SetGraphics3DSunLightV1.json","markdown":"https://demonhunterlabs.com/reference/text/graphics.render3d--SetGraphics3DSunLightV1.md"}
