Created
December 14, 2020 10:17
-
-
Save wewindy/c17951c724c0dcb207bb623e8b46eb53 to your computer and use it in GitHub Desktop.
czm_computerPosition.glsl from Primitive.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vec4 czm_computePosition() | |
{ | |
vec4 p; | |
if (czm_morphTime == 1.0) | |
{ | |
p = czm_translateRelativeToEye(position3DHigh, position3DLow); | |
} | |
else if (czm_morphTime == 0.0) | |
{ | |
p = czm_translateRelativeToEye(position2DHigh.zxy, position2DLow.zxy); | |
} | |
else | |
{ | |
p = czm_columbusViewMorph(czm_translateRelativeToEye(position2DHigh.zxy, position2DLow.zxy), czm_translateRelativeToEye(position3DHigh, position3DLow), czm_morphTime); | |
} | |
return p; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment