Skip to content

Commit

Permalink
NO MORE SEAMS ON BLOCKS
Browse files Browse the repository at this point in the history
  • Loading branch information
Kade-github committed Apr 22, 2024
1 parent 8eac8a2 commit ed9faaf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Assets/Shaders/vert.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ layout (location = 1) in vec2 aTexCoord;
out vec2 TexCoord;
out vec3 Position;

uniform mat4 projection;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;

void main()
{
gl_Position = projection * view * model * vec4(aPos, 1.0);
Position = vec3(model * vec4(aPos, 1.0));
TexCoord = vec2(aTexCoord.x, 1.0 - aTexCoord.y);
}
}
2 changes: 1 addition & 1 deletion src/Game/Scenes/Gameplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void Gameplay::Draw()

glm::mat4 project = camera->GetProjectionMatrix();

Game::instance->shader->SetUniformMat4f(5, glm::value_ptr(project));
Game::instance->shader->SetUniformMat4f("projection", glm::value_ptr(project));

int fog = (camera->cameraFar / 2) * Settings::instance->fogDistance;

Expand Down
1 change: 0 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ int main()
glfwWindowHint(GLFW_RESIZABLE, GL_FALSE);

glfwWindowHint(GLFW_DOUBLEBUFFER, GL_TRUE);
glfwWindowHint(GLFW_SAMPLES, 4);


game.CCreateWindow(1920, 1080);
Expand Down

0 comments on commit ed9faaf

Please sign in to comment.