-
-
Save davschne/2f93f5debac3b9ebc24750c8e5f12e0e to your computer and use it in GitHub Desktop.
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
// retrieve and decode pixel value from the old tile | |
vec4 rgbaFloatsA = texture2D(textureA, vTexCoordA); | |
float pixelFloatValueA = rgbaToFloat(rgbaFloatsA, littleEndian); | |
// retrieve and decode pixel value from the new tile | |
vec4 rgbaFloatsB = texture2D(textureB, vTexCoordB); | |
float pixelFloatValueB = rgbaToFloat(rgbaFloatsB, littleEndian); | |
// interpolate | |
float interpolated = mix(pixelFloatValueA, pixelFloatValueB, interpolationFraction); | |
// compute the color of the interpolated value | |
gl_FragColor = computeColor( | |
interpolated, | |
colorScale, | |
sentinelValues, | |
colorScaleLength, | |
sentinelValuesLength | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment