graphics.render3d · function ·
SetGraphics3DLightDirection
Set graphics3 dlight direction.
Use bounded hardware 3D resources, meshes, cameras, lights, and draw commands.
external SetGraphics3DLightDirection(float x, float y, float z) returns boolStatus: source-declared
Parameters
float x- Supply x as float.
float y- Supply y as float.
float z- Supply z as float.
Use SetGraphics3DLightDirection
A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.
cpu · source-example · type checked
using graphics.render3d
// Use bounded hardware 3D resources, meshes, cameras, lights, and draw commands.
float x = 1.0
float y = 1.0
float z = 1.0
bool result = SetGraphics3DLightDirection(x, y, z)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.graphics_render3d__setgraphics3dlightdirection"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
[[dependencies]]
package = "graphics.render3d"
version = "0.1.0"
path = "../../../yeho/packages/graphics/render3d"
Notes and source
Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.
yeho/packages/graphics/render3d/render3d.yh:128