awips2/cave/com.raytheon.viz.core.gl/localization/glsl/raster.glsl
Max Schenkelberg 3369fbec2d Issue #2492 Implemented support for colormapping in different units than the data comes in as. Other changes include NPE fix in RecordTileSetRenderable, glsl cleanup to use structs for code sharing, a topo display fix, and moved viirs colormaps to common
Amend: Fixed precision issue with float comparison, made factory better synchronized.

Change-Id: Ie72d8d26ca5dc5ee1a0b5c14ca726edbee3bc1a2

Former-commit-id: ae724ecce3d4c65f8845f3278f9b5eeb5b04908a
2013-11-06 15:07:18 -06:00

9 lines
No EOL
228 B
GLSL

#include <coloring>
uniform sampler2D rawTex;
uniform ColorModifiers modifiers;
void main(void) {
vec4 textureColor = texture2D(rawTex, gl_TexCoord[0].st);
gl_FragColor = applyColorModifiers(textureColor, modifiers);
}