generated from AfonsoCMSousa/CPP-Template
Atempt at fixing pixelization.
This commit is contained in:
+1
-1
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user