This function allows the light's color to be changed. This is exposed to script below.
| 98 | |
| 99 | // This function allows the light's color to be changed. This is exposed to script below. |
| 100 | void 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 |
no test coverage detected