RSS

(root)/iphone/tappity : 60 : MarineCompass/source/fresnel.vs

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

« back to all changes in this revision

Viewing changes to MarineCompass/source/fresnel.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
 
 *  fresnel.vs
3
 
 *  MarineCompass
4
 
 *
5
 
 *  Created by döme on 29.07.2009.
6
 
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
7
 
 *
8
 
 */
9
 
 
10
 
uniform mat4 projectionMatrix;
11
 
uniform mat4 modelviewMatrix;
12
 
uniform mat4 normalMatrix;
13
 
uniform mat4 textureMatrix;
14
 
 
15
 
attribute vec3  position;
16
 
attribute vec3  normal;
17
 
attribute vec2  texcoord;
18
 
 
19
 
varying vec3 N;
20
 
varying vec2 tx0;
21
 
varying vec4 epos;
22
 
 
23
 
void main()
24
 
{
25
 
        gl_Position = projectionMatrix*(modelviewMatrix*vec4(position,1.0));
26
 
        epos = modelviewMatrix*vec4(position,1.0);
27
 
        N = (normalMatrix*vec4(normal, 0.0)).xyz;
28
 
        tx0 = (textureMatrix*vec4(texcoord, 0.0, 1.0)).xy;
29
 
}

Loggerhead 1.17 is a web-based interface for Bazaar branches