Normal orientation, don't pause by default

This commit is contained in:
saschawillems 2016-07-04 19:28:43 +02:00
parent d139e90f66
commit 48ecef07fa
3 changed files with 1 additions and 1 deletions

View file

@ -22,6 +22,7 @@ void main()
// Calculate normal in tangent space
vec3 N = normalize(inNormal);
N.y = -N.y;
vec3 T = normalize(inTangent);
vec3 B = cross(N, T);
mat3 TBN = mat3(T, B, N);

Binary file not shown.

View file

@ -146,7 +146,6 @@ public:
camera.position = { 2.15f, 0.3f, -8.75f };
camera.setRotation(glm::vec3(-0.75f, 12.5f, 0.0f));
camera.setPerspective(60.0f, (float)width / (float)height, 0.1f, 256.0f);
paused = true;
}
~VulkanExample()