This function allows the viewport's ambient color to be changed. This is exposed to script below.
| 90 | |
| 91 | // This function allows the viewport's ambient color to be changed. This is exposed to script below. |
| 92 | void 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. |
| 100 | void GuiMaterialPreview::setLightColor( F32 r, F32 g, F32 b ) |
no test coverage detected