File: background.vs

package info (click to toggle)
wings3d 2.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 14,404 kB
  • sloc: erlang: 132,169; ansic: 3,779; lisp: 1,434; sh: 805; makefile: 794; cpp: 244; xml: 50
file content (18 lines) | stat: -rw-r--r-- 339 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//
// Vertex shader for most of the fragment shader
//
#version 120

varying vec3 position;
uniform mat3x4 ws_matrix;

void main(void)
{
    position = gl_Vertex.xyz;

    mat4 proj = gl_ProjectionMatrix;
    mat4 view = mat4(mat3(gl_ModelViewMatrix));

    vec4 pos = proj * view * vec4(gl_Vertex.xyz, 1.0);
    gl_Position = pos.xyww;
}