mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
14 lines
986 B
GLSL
14 lines
986 B
GLSL
|
|
uniform vec4 u_topColor;
|
|
uniform vec4 u_bottomColor;
|
|
|
|
varying vec2 v_texCoord;
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
/// Fragment Shader - Top -> Bottom gradient
|
|
//--------------------------------------------------------------------------------------------------
|
|
void main()
|
|
{
|
|
gl_FragColor = u_bottomColor + (u_topColor - u_bottomColor)*v_texCoord.y;
|
|
}
|