Remove erraneous enabled OpenGL checking code

Remove warnings
Reset using the star glare texture as billboard for the Sun
This commit is contained in:
Alexander Bock
2017-12-12 13:07:56 -05:00
parent 0f0fb78a63
commit a08c678bb0
16 changed files with 85 additions and 22 deletions

View File

@@ -1034,11 +1034,11 @@ void TouchInteraction::step(double dt) {
directionToCenter = normalize(-centerToCam);
dvec3 lookUpWhenFacingCenter = globalCamRot *
dvec3(_camera->lookUpVectorCameraSpace());
dmat4 lookAtMat = lookAt(
dmat4 lookAtMatrix = lookAt(
dvec3(0, 0, 0),
directionToCenter,
lookUpWhenFacingCenter);
globalCamRot = normalize(quat_cast(inverse(lookAtMat)));
globalCamRot = normalize(quat_cast(inverse(lookAtMatrix)));
}
{ // Zooming
centerToBoundingSphere = -directionToCenter * boundingSphere;