RSS

(root)/iphone/tappity : 60 : common/source/simple.vs

To get this branch, use:
bzr branch /browse/iphone/tappity

« back to all changes in this revision

Viewing changes to common/source/simple.vs

Dömötör Gulyás
2010-01-18 09:01:40
Revision ID: dognotdog@gmail.com-20100118080140-g8bc7z6dp9ilr8rt
made tappity a standalone tree

Show diffs side-by-side

added added

removed removed

1
 
/*
2
 
 *  simple.vs
3
 
 *
4
 
 *  Created by döme on 04.08.2009.
5
 
 *
6
 
 */
7
 
 
8
 
uniform mat4 projectionMatrix;
9
 
uniform mat4 modelviewMatrix;
10
 
uniform mat4 normalMatrix;
11
 
uniform mat4 textureMatrix;
12
 
 
13
 
attribute vec3  position;
14
 
attribute vec3  normal;
15
 
attribute vec2  texcoord;
16
 
 
17
 
varying vec3 N;
18
 
varying vec2 tx0;
19
 
varying vec4 epos;
20
 
 
21
 
void main()
22
 
{
23
 
        gl_Position = projectionMatrix*modelviewMatrix*vec4(position,1.0);
24
 
        epos = modelviewMatrix*vec4(position,1.0);
25
 
        N = (normalMatrix*vec4(normal, 0.0)).xyz;
26
 
        tx0 = (textureMatrix*vec4(texcoord, 0.0, 1.0)).xy;
27
 
}

Loggerhead 1.17 is a web-based interface for Bazaar branches