RSS

(root)/iphone/common : 23 : Jigs/source/jigsawPiece.fs

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

« back to all changes in this revision

Viewing changes to Jigs/source/jigsawPiece.fs

Dömötör Gulyás
2009-08-09 18:33:08
Revision ID: dognotdog@gmail.com-20090809163308-k92rpn48plb13cqe
adds ability to create textures from PDF; adds color value to shaders; jigs now displays movement mode

Show diffs side-by-side

added added

removed removed

9
9
 
10
10
precision highp float;
11
11
 
12
 
uniform sampler2D tex0;
 
12
uniform sampler2D       tex0;
 
13
uniform vec4            color;
13
14
 
14
15
varying highp vec3 N;
15
16
varying highp vec2 tx0;
23
24
 
24
25
        lowp vec4 tex0color = texture2D(tex0, tx0);
25
26
        
26
 
        gl_FragColor = vec4(tex0color.rgb, tex0color.a);
 
27
        gl_FragColor = vec4(tex0color.rgb, tex0color.a)*color;
27
28
//      gl_FragColor = vec4(1.0,1.0,1.0,1.0);
28
29
//      float diffuse = -dot(NN, lightdir)*(float(gl_FrontFacing)*2.0 - 1.0);
29
30
//      gl_FragColor = vec4(tex0color.rgb*(0.7*diffuse + 0.3), tex0color.a);

Loggerhead 1.17 is a web-based interface for Bazaar branches