Skip to content

Commit

Permalink
fix some stuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Kade-github committed May 24, 2024
1 parent 65ce41d commit 15cfca2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Assets/Shaders/frag.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ void main()

FragColor = mix(FragColor, vec4(1.0, 0.0, 0.0, FragColor.a), redness);

// Adjust brightness and contrast
// Adjust brightness

FragColor = vec4(FragColor.rgb * brightness, FragColor.a);

if (FogFar < 1000)
FragColor = mix(FragColor, vec4(FogColor.rgb * brightness, FragColor.a), fogFactor);
FragColor = mix(FragColor, vec4(FogColor.rgb, FragColor.a), fogFactor);

}
4 changes: 2 additions & 2 deletions src/Game/Objects/Base/Entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ void Entity::CheckCollision(glm::vec3& motion, float down)

if (hit)
{
progress -= 25 * Game::instance->deltaTime;
progress -= 0.5f;
_lastX = rp.x + (diff.x * progress);
break;
}
Expand Down Expand Up @@ -187,7 +187,7 @@ void Entity::CheckCollision(glm::vec3& motion, float down)

if (hit)
{
progress -= 25 * Game::instance->deltaTime;
progress -= 0.5f;
_lastZ = rp.z + (diff.z * progress);
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Game/Objects/Base/Entity.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Entity : public GameObject
bool inWater = false;

float gravity = 22.0f;
float jumpStrength = 7.8f;
float jumpStrength = 6.8f;
float speed = 9.0f;

bool tiny = false;
Expand Down
6 changes: 3 additions & 3 deletions src/Game/Scenes/SettingsMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ void SettingsMenu::Create()

ambientDiffuse = new Bar(glm::vec3(0, 0, 0), "Ambient Diffusion: " + std::string(Settings::instance->useAmbientDiffuse ? "on" : "off"));

ambientDiffuse->position = glm::vec3(c2d->_w / 2, c2d->_h / 2 + 200, 0);
ambientDiffuse->position = glm::vec3(c2d->_w / 2, c2d->_h / 2 + 400, 0);

ambientDiffuse->position -= glm::vec3(ambientDiffuse->width / 2, 0, 0);

c2d->AddObject(ambientDiffuse);

vsync = new Bar(glm::vec3(0, 0, 0), "VSync: " + std::string(Settings::instance->vsync ? "on" : "off"));

vsync->position = glm::vec3(c2d->_w / 2, (c2d->_h / 2) + 100, 0);
vsync->position = glm::vec3(c2d->_w / 2, (c2d->_h / 2) + 300, 0);

vsync->position -= glm::vec3(vsync->width / 2, 0, 0);

c2d->AddObject(vsync);

fullscreen = new Bar(glm::vec3(0, 0, 0), "Fullscreen: " + std::string(Settings::instance->fullscreen ? "on" : "off"));

fullscreen->position = glm::vec3(c2d->_w / 2, c2d->_h / 2, 0);
fullscreen->position = glm::vec3(c2d->_w / 2, c2d->_h / 2 + 200, 0);

fullscreen->position -= glm::vec3(fullscreen->width / 2, 0, 0);

Expand Down

0 comments on commit 15cfca2

Please sign in to comment.