Explorar el Código

OpenGL now uses clockwise front faces same as dx9/dx11

BearishSun hace 9 años
padre
commit
7906a236f8
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      BansheeGLRenderAPI/Source/BsGLRenderAPI.cpp

+ 3 - 2
BansheeGLRenderAPI/Source/BsGLRenderAPI.cpp

@@ -150,6 +150,7 @@ namespace BansheeEngine
 		mCurrentCapabilities = createRenderSystemCapabilities();
 		initFromCaps(mCurrentCapabilities);
 		GLVertexArrayObjectManager::startUp();
+		glFrontFace(GL_CW);
 
 		mGLInitialised = true;
 
@@ -1126,10 +1127,10 @@ namespace BansheeEngine
 			return;
 		default:
 		case CULL_CLOCKWISE:
-			cullMode = GL_BACK;
+			cullMode = GL_FRONT;
 			break;
 		case CULL_COUNTERCLOCKWISE:
-			cullMode = GL_FRONT;
+			cullMode = GL_BACK;
 			break;
 		}