forked from Kolyah35/minecraft-pe-0.6.1
Fixes and enhancements from my MCPE repository. (https://github.com/mschiller890/mcpe64)
This commit is contained in:
@@ -270,15 +270,15 @@ void GameRenderer::renderLevel(float a) {
|
||||
screenScissorArea.w, screenScissorArea.h);
|
||||
}
|
||||
|
||||
// if(mc->options.fancyGraphics) {
|
||||
// setupFog(-1);
|
||||
// TIMER_POP_PUSH("sky");
|
||||
// glFogf(GL_FOG_START, renderDistance * 0.2f);
|
||||
// glFogf(GL_FOG_END, renderDistance *0.75);
|
||||
// levelRenderer->renderSky(a);
|
||||
// glFogf(GL_FOG_START, renderDistance * 0.6f);
|
||||
// glFogf(GL_FOG_END, renderDistance);
|
||||
// }
|
||||
if(mc->options.fancyGraphics) {
|
||||
setupFog(-1);
|
||||
TIMER_POP_PUSH("sky");
|
||||
glFogf(GL_FOG_START, renderDistance * 0.2f);
|
||||
glFogf(GL_FOG_END, renderDistance *0.75);
|
||||
levelRenderer->renderSky(a);
|
||||
glFogf(GL_FOG_START, renderDistance * 0.6f);
|
||||
glFogf(GL_FOG_END, renderDistance);
|
||||
}
|
||||
glEnable2(GL_FOG);
|
||||
setupFog(1);
|
||||
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
#if defined(__APPLE__)
|
||||
#import <OpenGLES/ES1/gl.height>
|
||||
#import <OpenGLES/ES1/glext.height>
|
||||
#elif defined(ANDROID)
|
||||
#include <GLES/gl.h>
|
||||
#include <GLES/glext.h>
|
||||
#else
|
||||
#include <glad/glad.h>
|
||||
#if defined(ANDROID)
|
||||
#include<GLES/glext.h>
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
// Uglyness to fix redeclaration issues
|
||||
|
||||
Reference in New Issue
Block a user