summaryrefslogtreecommitdiffstats
path: root/src/RendererWorld.cpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-03-18 13:38:36 +0100
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-03-18 13:38:36 +0100
commit90397c50e72567fa9df7d316f1bb263823d42da8 (patch)
treeb91abc68d29cdfe89475566b93f43ad9eb998514 /src/RendererWorld.cpp
parentOptimized update of RendererSection (diff)
downloadAltCraft-90397c50e72567fa9df7d316f1bb263823d42da8.tar
AltCraft-90397c50e72567fa9df7d316f1bb263823d42da8.tar.gz
AltCraft-90397c50e72567fa9df7d316f1bb263823d42da8.tar.bz2
AltCraft-90397c50e72567fa9df7d316f1bb263823d42da8.tar.lz
AltCraft-90397c50e72567fa9df7d316f1bb263823d42da8.tar.xz
AltCraft-90397c50e72567fa9df7d316f1bb263823d42da8.tar.zst
AltCraft-90397c50e72567fa9df7d316f1bb263823d42da8.zip
Diffstat (limited to '')
-rw-r--r--src/RendererWorld.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/RendererWorld.cpp b/src/RendererWorld.cpp
index 628680c..04d8392 100644
--- a/src/RendererWorld.cpp
+++ b/src/RendererWorld.cpp
@@ -446,9 +446,7 @@ void RendererWorld::PrepareRender() {
skyShader = new Shader("./shaders/sky.vs", "./shaders/sky.fs");
skyShader->Use();
- glUniform1i(glGetUniformLocation(skyShader->Program, "textureAtlas"), 0);
- TextureCoordinates skyTexture = AssetManager::Instance().GetTextureByAssetName("minecraft/textures/entity/end_portal");
- glUniform4f(glGetUniformLocation(skyShader->Program, "skyTexture"),skyTexture.x,skyTexture.y,skyTexture.w,skyTexture.h);
+ glUniform1i(glGetUniformLocation(skyShader->Program, "textureAtlas"), 0);
TextureCoordinates sunTexture = AssetManager::Instance().GetTextureByAssetName("minecraft/textures/environment/sun");
glUniform4f(glGetUniformLocation(skyShader->Program, "sunTexture"), sunTexture.x, sunTexture.y, sunTexture.w, sunTexture.h);
TextureCoordinates moonTexture = AssetManager::Instance().GetTextureByAssetName("minecraft/textures/environment/moon_phases");