DModelPanel/GetAmbientLight

From Garry's Mod
Jump to: navigation, search
 DModelPanel:GetAmbientLight( )

Contents

DescriptionPanelFunc

Returns the ambient lighting used on the rendered entity.

Returns

table

The color of the ambient lighting.

Examples

Example

Prints out the default ambient lighting used on models.

local mdl = vgui.Create("DModelPanel")
mdl:SetPos(20, 20)
mdl:SetSize(200, 200)
mdl:SetModel("models/props_junk/watermelon01.mdl")

print(mdl:GetAmbientLight())

Output:

50 50 50 255
Personal tools
Navigation