Skip to content

Commit

Permalink
Code updates from review.
Browse files Browse the repository at this point in the history
  • Loading branch information
bagnell committed Mar 9, 2017
1 parent 3937422 commit 620c090
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
6 changes: 1 addition & 5 deletions Source/Shaders/Builtin/Functions/alphaWeight.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ float czm_alphaWeight(float a)
vec4 q = vec4(x, y, z, 0.0);
q /= gl_FragCoord.w;

bool usingOrthographic = all(equal(czm_inverseProjection[0], vec4(0.0))) &&
all(equal(czm_inverseProjection[1], vec4(0.0))) &&
all(equal(czm_inverseProjection[2], vec4(0.0))) &&
all(equal(czm_inverseProjection[3], vec4(0.0)));
if (!usingOrthographic) {
if (czm_inverseProjection != mat4(0.0)) {
q = czm_inverseProjection * q;
} else {
float top = czm_frustumPlanes.x;
Expand Down
6 changes: 1 addition & 5 deletions Source/Shaders/Builtin/Functions/windowToEyeCoordinates.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ vec4 czm_windowToEyeCoordinates(vec4 fragmentCoordinate)
vec4 q = vec4(x, y, z, 1.0);
q /= fragmentCoordinate.w;

bool usingOrthographic = all(equal(czm_inverseProjection[0], vec4(0.0))) &&
all(equal(czm_inverseProjection[1], vec4(0.0))) &&
all(equal(czm_inverseProjection[2], vec4(0.0))) &&
all(equal(czm_inverseProjection[3], vec4(0.0)));
if (!usingOrthographic) {
if (czm_inverseProjection != mat4(0.0)) {
q = czm_inverseProjection * q;
} else {
float top = czm_frustumPlanes.x;
Expand Down
2 changes: 1 addition & 1 deletion Source/Widgets/Viewer/Viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ define([
if(defined(sceneModePicker)) {
sceneModePicker.container.style.visibility = visibility;
}
if(defined(projectionPicker)) {
if (defined(projectionPicker)) {
projectionPicker.container.style.visibility = visibility;
}
if(defined(baseLayerPicker)) {
Expand Down

0 comments on commit 620c090

Please sign in to comment.