File: file.glslf

package info (click to toggle)
gtksourceview4 4.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 15,840 kB
  • sloc: ansic: 49,715; sh: 4,917; xml: 1,302; makefile: 1,010; python: 230; perl: 52; yacc: 45; cobol: 20; objc: 19; sed: 16; fortran: 14; cpp: 8; ml: 3
file content (11 lines) | stat: -rw-r--r-- 218 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
#version 140
varying vec4 color_out;
/*
  A color shader
*/
void main(void)
{
  // edit the color of the fragment
  vec4 new_color = color_out + vec4(0.4, 0.4, 0.1, 1.0);
  gl_FragColor = clamp(new_color, 0.0, 1.0);
}