File: glarea-fragment.glsl

package info (click to toggle)
ruby-gnome2 3.1.0-1%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 16,072 kB
  • ctags: 17,433
  • sloc: ansic: 93,621; ruby: 62,273; xml: 335; sh: 246; makefile: 25
file content (9 lines) | stat: -rw-r--r-- 189 bytes parent folder | download | duplicates (27)
1
2
3
4
5
6
7
8
9
#version 330

out vec4 outputColor;

void main() {
  float lerpVal = gl_FragCoord.y / 500.0f;

  outputColor = mix(vec4(1.0f, 0.85f, 0.35f, 1.0f), vec4(0.2f, 0.2f, 0.2f, 1.0f), lerpVal);
}