File: depthOfField.vert

package info (click to toggle)
sofa-framework 1.0~beta4-11
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 88,820 kB
  • ctags: 27,300
  • sloc: cpp: 151,126; ansic: 2,387; xml: 581; sh: 417; makefile: 68
file content (15 lines) | stat: -rwxr-xr-x 316 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#version 120
varying vec3 vertexPosition;
varying vec2 texCoord;

void main()
{
	gl_TexCoord[0] = gl_MultiTexCoord0;
	vertexPosition = (gl_ModelViewMatrix * gl_Vertex).xyz;
	
	texCoord.x = 0.5 * (1.0 + vertexPosition.x);
	texCoord.y = 0.5 * (1.0 + vertexPosition.y);

	gl_Position = ftransform();

}