I am trying to load a model and it is loading it in reverse. When I am trying to rotate it 180 degrees it changes the lightning as well. I am not sure what I need to do to change the position that eh model is facing when is being loaded.
This is the object loader:
if (!submarineShader->load("BasicView", "glslfiles/basicTransformations.vert", "glslfiles/basicTransformations.frag"))
{
cout << "failed to load shader" << endl;
}
glUseProgram(submarineShader->handle()); // use the shader
glEnable(GL_TEXTURE_2D);
cout << " loading model " << endl;
if (objLoader.loadModel("submarine_/submarine v2/submarine5.obj", model))//returns true if the model is loaded, puts the model in the model parameter
{
cout << " model loaded " << endl;
model.calcVertNormalsUsingOctree();
model.initDrawElements();
model.initVBO(submarineShader);
model.deleteVertexFaceData();
}
else
{
cout << " model failed to load " << endl;
}

