Skip to main content

Scene3DLightRef

A reference to a 3D scene camera instance

scene.camera.pos = { 1, 2, 3 }
scene.camera.fov = 125

Properties

dir

Scene3DLightRef.dir: Vec3

Get/Set the light direction vector

ambient

Scene3DLightRef.ambient: Vec3

Get/Set the light ambient color

intensity

Scene3DLightRef.intensity: Vec3

Get/Set the light color intensity

Show raw api
{
    "functions": [],
    "properties": [
        {
            "name": "dir",
            "desc": "Get/Set the light direction vector",
            "lua_type": "Vec3",
            "source": {
                "line": 18,
                "path": "../../res/data/script/lib/system/scene3d_light.lua"
            }
        },
        {
            "name": "ambient",
            "desc": "Get/Set the light ambient color",
            "lua_type": "Vec3",
            "source": {
                "line": 25,
                "path": "../../res/data/script/lib/system/scene3d_light.lua"
            }
        },
        {
            "name": "intensity",
            "desc": "Get/Set the light color intensity",
            "lua_type": "Vec3",
            "source": {
                "line": 32,
                "path": "../../res/data/script/lib/system/scene3d_light.lua"
            }
        }
    ],
    "types": [],
    "name": "Scene3DLightRef",
    "desc": "A reference to a 3D scene camera instance\n\n```lua\nscene.camera.pos = { 1, 2, 3 }\nscene.camera.fov = 125\n```",
    "source": {
        "line": 10,
        "path": "../../res/data/script/lib/system/scene3d_light.lua"
    }
}