File: ex_prim_shader_vertex.glsl

package info (click to toggle)
allegro5 2%3A5.2.10.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,820 kB
  • sloc: ansic: 109,795; cpp: 12,976; objc: 4,592; java: 2,845; python: 2,595; javascript: 1,238; sh: 1,008; makefile: 40; xml: 27; pascal: 24
file content (15 lines) | stat: -rw-r--r-- 350 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
attribute vec4 al_pos;
attribute vec3 al_user_attr_0;

uniform mat4 al_projview_matrix;

/* pixel_position and normal are used to compute the reflections in the pixel shader */
varying vec3 pixel_position;
varying vec3 normal;

void main()
{
   pixel_position = al_pos.xyz;
   normal = al_user_attr_0;
   gl_Position = al_projview_matrix * al_pos;
}