• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 130
2
3float __foo(float x)
4{
5   return 6.0 * x;
6}
7
8#pragma warning(off)
9float __bar(float x)
10{
11   return 3.0 * x;
12}
13#pragma warning(on)
14
15float __blat(float x)
16{
17   return 2.0 * x;
18}
19
20void main()
21{
22   gl_Position = vec4(__foo(gl_Vertex.x), __bar(gl_Vertex.y), __blat(gl_Vertex.z), 1.0);
23}
24
25