summaryrefslogtreecommitdiffstats
path: root/src/RendererWorld.cpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-21 17:43:26 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-21 17:43:26 +0200
commit228920cde3d3860280cdedbbe69c33767791e4a7 (patch)
tree1a31fc4e2aa9a2e78de775fd283dbcadf51b6590 /src/RendererWorld.cpp
parentFixed linux compilation errors (diff)
downloadAltCraft-228920cde3d3860280cdedbbe69c33767791e4a7.tar
AltCraft-228920cde3d3860280cdedbbe69c33767791e4a7.tar.gz
AltCraft-228920cde3d3860280cdedbbe69c33767791e4a7.tar.bz2
AltCraft-228920cde3d3860280cdedbbe69c33767791e4a7.tar.lz
AltCraft-228920cde3d3860280cdedbbe69c33767791e4a7.tar.xz
AltCraft-228920cde3d3860280cdedbbe69c33767791e4a7.tar.zst
AltCraft-228920cde3d3860280cdedbbe69c33767791e4a7.zip
Diffstat (limited to '')
-rw-r--r--src/RendererWorld.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/RendererWorld.cpp b/src/RendererWorld.cpp
index 023ac32..d91ea0e 100644
--- a/src/RendererWorld.cpp
+++ b/src/RendererWorld.cpp
@@ -304,7 +304,7 @@ void RendererWorld::Render(RenderState & renderState) {
if (selectedBlock != Vector()) {
glLineWidth(2.0f);
{
- glm::mat4 model;
+ glm::mat4 model = glm::mat4(1.0);
model = glm::translate(model, selectedBlock.glm());
model = glm::translate(model,glm::vec3(0.5f,0.5f,0.5f));
model = glm::scale(model,glm::vec3(1.01f,1.01f,1.01f));
@@ -345,7 +345,7 @@ void RendererWorld::Render(RenderState & renderState) {
viewLoc = glGetUniformLocation(skyShader->Program, "view");
glUniformMatrix4fv(projectionLoc, 1, GL_FALSE, glm::value_ptr(projection));
glUniformMatrix4fv(viewLoc, 1, GL_FALSE, glm::value_ptr(view));
- glm::mat4 model = glm::mat4();
+ glm::mat4 model = glm::mat4(1.0);
model = glm::translate(model, gs->player->pos.glm());
const float scale = 1000000.0f;
model = glm::scale(model, glm::vec3(scale, scale, scale));