Atempt at fixing pixelization.

This commit is contained in:
2025-10-01 19:06:45 +01:00
parent c6a563f781
commit c5a8cef2d3
229 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ int main() {
// Caulculate model, view, projection matrices
glm::mat4 model = glm::mat4(1.0f);
glm::mat4 view = glm::translate(glm::mat4(1.0f), glm::vec3(0.0f, 0.0f, -1.0f));
glm::mat4 projection = glm::perspective(glm::radians(45.0f), SCR_WIDTH/SCR_HEIGHT, 0.1f, 100.0f);
glm::mat4 projection = glm::perspective(glm::radians(45.0f), (SCR_WIDTH/SCR_HEIGHT)*2, 0.1f, 100.0f);
GLuint modelLoc = (unsigned int) glGetUniformLocation(shaderProgram, "model");
GLuint viewLoc = (unsigned int) glGetUniformLocation(shaderProgram, "view");