MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setAmbientLightColor

Method setAmbientLightColor

Engine/source/T3D/guiMaterialPreview.cpp:92–97  ·  view source on GitHub ↗

This function allows the viewport's ambient color to be changed. This is exposed to script below.

Source from the content-addressed store, hash-verified

90
91// This function allows the viewport's ambient color to be changed. This is exposed to script below.
92void GuiMaterialPreview::setAmbientLightColor( F32 r, F32 g, F32 b )
93{
94 LinearColorF temp(r, g, b);
95 temp.clamp();
96 GuiMaterialPreview::mFakeSun->setAmbient( temp );
97}
98
99// This function allows the light's color to be changed. This is exposed to script below.
100void GuiMaterialPreview::setLightColor( F32 r, F32 g, F32 b )

Callers 1

Calls 2

setAmbientMethod · 0.80
clampMethod · 0.45

Tested by

no test coverage detected