-
-
Save davschne/33d8830d03128de6e52c530261d8327c 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
// ... obtain old and new pixel values as before | |
// compute the color of the old pixel | |
vec4 colorA = computeColor( | |
pixelFloatValueA, | |
colorScaleA, | |
sentinelValuesA, | |
colorScaleLengthA, | |
sentinelValuesLengthA | |
); | |
// compute the color of the new pixel | |
vec4 colorB = computeColor( | |
pixelFloatValueB, | |
colorScaleB, | |
sentinelValuesB, | |
colorScaleLengthB, | |
sentinelValuesLengthB | |
); | |
// interpolate between the colors | |
gl_FragColor = mix(colorA, colorB, interpolationFraction); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment