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

Method setLightColor

Engine/source/T3D/guiMaterialPreview.cpp:100–105  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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 )
101{
102 LinearColorF temp(r, g, b);
103 temp.clamp();
104 GuiMaterialPreview::mFakeSun->setColor( temp );
105}
106
107// This function is for moving the light in the scene. This needs to be adjusted to keep the light
108// from getting all out of whack. For now, we'll just rely on the reset function if we need it

Callers 1

Calls 2

clampMethod · 0.45
setColorMethod · 0.45

Tested by

no test coverage detected