File: ex_prim_shader_vertex.glsl

package info (click to toggle)
allegro5 2%3A5.2.8.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 26,560 kB
  • sloc: ansic: 128,223; cpp: 15,902; objc: 4,620; python: 2,898; java: 2,254; javascript: 1,242; sh: 1,010; makefile: 50; perl: 37; xml: 25; pascal: 24
file content (15 lines) | stat: -rw-r--r-- 350 bytes parent folder | download | duplicates (6)
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;
}