Working reference and bunny scene

This commit is contained in:
2024-10-30 15:16:30 +01:00
parent f1a8d62b39
commit d8936ca9f6
11 changed files with 945783 additions and 68 deletions

View File

@@ -47,7 +47,7 @@ int main(int argc, char* args[])
const auto pTimer = new Timer();
const auto pRenderer = new Renderer(pWindow);
const auto pScene = new Scene_W2();
const auto pScene = new Scene_W4_ReferenceScene();
pScene->Initialize();
@@ -74,10 +74,22 @@ int main(int argc, char* args[])
case SDL_KEYUP:
if (e.key.keysym.scancode == SDL_SCANCODE_X)
takeScreenshot = true;
if (e.key.keysym.scancode == SDL_SCANCODE_F2)
{
pRenderer->ToggleShadows();
}
if (e.key.keysym.scancode == SDL_SCANCODE_F3)
{
pRenderer->CycleLightingMode();
}
break;
}
}
//--------- Update ---------
pScene->Update(pTimer);