Browse Source

Adding old PBR reference test branch.

angel 7 years ago
parent
commit
99431440a4
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/camera.cpp
  2. 1 1
      src/softwareRenderer.cpp

+ 2 - 2
src/camera.cpp

@@ -14,9 +14,9 @@ void Camera::update(){
     float radius = 2;
     float camX   = std::sin(t/6000) * radius;
     float camZ   = std::cos(t/6000) * radius;
-    position.x   = camX;
+    position.x   = 0;
     position.y   = 0;
-    position.z   = camZ;
+    position.z   = 2;
     target.z     = 0;
     viewMatrix   = Matrix4::lookAt(position,target,up);
     cameraFrustrum.updatePlanes(viewMatrix, position);

+ 1 - 1
src/softwareRenderer.cpp

@@ -71,7 +71,7 @@ void SoftwareRenderer::drawTriangularMesh(Model * currentModel){
     // Iterate through every triangle
     int count = 0;
 
-    #pragma omp parallel for private(trianglePrimitive, normalPrim, uvPrim, tangentPrim) firstprivate(shader)
+    //#pragma omp parallel for private(trianglePrimitive, normalPrim, uvPrim, tangentPrim) firstprivate(shader)
     for (int j= 0; j < numFaces; ++j){
         //Current vertex and normal indices
         Vector3i f = (*vIndices)[j];