Browse Source

fix opengl cubemap display

AzaezelX 3 năm trước cách đây
mục cha
commit
bce14ab63f
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      Engine/source/gfx/gl/gfxGLDevice.cpp

+ 3 - 0
Engine/source/gfx/gl/gfxGLDevice.cpp

@@ -187,6 +187,9 @@ void GFXGLDevice::initGLState()
 
    //enable sRGB
    glEnable(GL_FRAMEBUFFER_SRGB);
+
+   //enable seamless cubemapping
+   glEnable(GL_TEXTURE_CUBE_MAP_SEAMLESS);
 }
 
 void GFXGLDevice::vsyncCallback()