Change background color

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