fix: Dynamic room lighting must be available only in developer mode
This commit is contained in:
parent
35191458bb
commit
c42c418f9f
1 changed files with 5 additions and 2 deletions
|
@ -813,8 +813,11 @@ bool Game::handleKeyDown(const SDL_KeyboardEvent &event) {
|
|||
break;
|
||||
}
|
||||
case SDLK_F4:
|
||||
setFeatureEnabled(Feature::DynamicRoomLighting, !isFeatureEnabled(Feature::DynamicRoomLighting));
|
||||
return true;
|
||||
if (_options.developer) {
|
||||
setFeatureEnabled(Feature::DynamicRoomLighting, !isFeatureEnabled(Feature::DynamicRoomLighting));
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
|
||||
case SDLK_LEFTBRACKET:
|
||||
_sceneGraph.setExposure(glm::max(0.25f, _sceneGraph.exposure() - 0.25f));
|
||||
|
|
Loading…
Reference in a new issue