diff options
Diffstat (limited to '')
-rw-r--r-- | src/RendererWorld.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/RendererWorld.cpp b/src/RendererWorld.cpp index ed4a4a3..d4586f5 100644 --- a/src/RendererWorld.cpp +++ b/src/RendererWorld.cpp @@ -427,10 +427,10 @@ void RendererWorld::PrepareRender() { skyShader = new Shader("./shaders/sky.vs", "./shaders/sky.fs"); skyShader->Use(); glUniform1i(glGetUniformLocation(skyShader->Program, "textureAtlas"), 0); - TextureCoord sunTexture = AssetManager::Instance().GetTexture("/minecraft/textures/environment/sun"); + TextureCoord sunTexture = AssetManager::GetTexture("/minecraft/textures/environment/sun"); glUniform4f(glGetUniformLocation(skyShader->Program, "sunTexture"), sunTexture.x, sunTexture.y, sunTexture.w, sunTexture.h); glUniform1f(glGetUniformLocation(skyShader->Program, "sunTextureLayer"), sunTexture.layer); - TextureCoord moonTexture = AssetManager::Instance().GetTexture("/minecraft/textures/environment/moon_phases"); + TextureCoord moonTexture = AssetManager::GetTexture("/minecraft/textures/environment/moon_phases"); moonTexture.w /= 4.0f; //First phase will be fine for now moonTexture.h /= 2.0f; glUniform4f(glGetUniformLocation(skyShader->Program, "moonTexture"), moonTexture.x, moonTexture.y, moonTexture.w, moonTexture.h); |