Change background color

This commit is contained in:
Wellinator committed 2021-04-09 13:16:50 -03:00
1 parent b749a80a25
commit 444990a262
1 file changed
+3 -3
+3 -3
View File
@@ -28,9 +28,9 @@ void Cubes::onUpdate(){
void Cubes::setBgColorAndAmbientColor()
{
color_t bgColor;
bgColor.r = 0x50;
bgColor.g = 0x50;
bgColor.b = 0x50;
bgColor.r = 0x20;
bgColor.g = 0x20;
bgColor.b = 0x20;
engine->renderer->setWorldColor(bgColor);
Vector3 ambient = Vector3(0.2F, 0.2F, 0.2F);
engine->renderer->setAmbientLight(ambient);