Skip to content

Commit

Permalink
[Config] Now using 'Fast' AO setting by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unarelith committed Jul 17, 2020
1 parent 1e6bd6a commit af9f7ef
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mods/default/tools.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function register_tool(name, material, mining_speed, harvest_capability)
elseif name == "shovel" then
tool_def.effective_on = {
"group:om_material_dirt",
"group:om_material:sand"
"group:om_material_sand"
}

tool_def.on_item_activated = function(pos, block, player, world, client, server)
Expand Down
2 changes: 1 addition & 1 deletion resources/shaders/game.v.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void main() {
v_lightValue = lightValue;

if (ambientOcclusion != 5) {
const float aovalues[] = float[](0.5, 0.75, 0.9, 1.0);
const float aovalues[] = float[](0.25, 0.5, 0.75, 1.0);
v_ambientOcclusion = aovalues[int(ambientOcclusion)];
} else {
v_ambientOcclusion = 1.0;
Expand Down
2 changes: 1 addition & 1 deletion source/client/core/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ bool Config::isCrosshairVisible = true;

// Graphics
u16 Config::renderDistance = 8;
u8 Config::ambientOcclusion = 2;
u8 Config::ambientOcclusion = 1;
bool Config::isSmoothLightingEnabled = true;
bool Config::isWireframeModeEnabled = false;
bool Config::isFullscreenModeEnabled = false;
Expand Down
4 changes: 2 additions & 2 deletions source/client/states/SettingsMenuState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ void SettingsMenuState::addGraphicsButtons() {

const std::string aoValueNames[3] = {
"OFF",
"Normal",
"Smooth Lighting"
"Fast",
"Fancy"
};

m_menuWidget.addButton(std::string("Ambient Occlusion: ") + aoValueNames[Config::ambientOcclusion], [&, aoValueNames] (TextButton &button) {
Expand Down

0 comments on commit af9f7ef

Please sign in to comment.