Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.render.setModelLighting

C๐Ÿท๏ธ Render

Part of StarfallEx namespace

๐Ÿ”— External
render.setModelLighting(lightDirection, r, g, b)
View on GitHub|lua/starfall/libs_cl/render.lua:643
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Sets up the ambient lighting for any upcoming render operation. Ambient lighting can be seen as a cube enclosing the object to be drawn, each of its faces representing a directional light source that shines towards the object.

Parameters

NameTypeDescription
lightDirectionnumberThe light source to edit, builtins.BOX enumeration.
rnumberThe red component of the light color.
gnumberThe green component of the light color.
bnumberThe blue component of the light color.

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.