diff options
author | Eric Guzman | 2012-02-27 11:13:35 -0800 |
---|---|---|
committer | Eric Guzman | 2012-02-27 11:13:35 -0800 |
commit | 1a6604a50f6cfbbf0cd6f45ab94b63a001d02162 (patch) | |
tree | bbfc75d1be1ff98d22042dbbed4ca93b4a845e0c /assets/shaders/TwistVert.frag.glsl | |
parent | 9e8cd4448a6d0f809a55c3bdea8b45ed75339794 (diff) | |
parent | 8125c8c6c9431067840d81c46624b6a2dd5eb4a7 (diff) | |
download | ninja-1a6604a50f6cfbbf0cd6f45ab94b63a001d02162.tar.gz |
Merge branch 'refs/heads/master' into CSSPanelUpdates
Diffstat (limited to 'assets/shaders/TwistVert.frag.glsl')
-rw-r--r-- | assets/shaders/TwistVert.frag.glsl | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/assets/shaders/TwistVert.frag.glsl b/assets/shaders/TwistVert.frag.glsl new file mode 100644 index 00000000..f8490615 --- /dev/null +++ b/assets/shaders/TwistVert.frag.glsl | |||
@@ -0,0 +1,32 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
5 | </copyright> */ | ||
6 | |||
7 | |||
8 | #ifdef GL_ES | ||
9 | precision highp float; | ||
10 | #endif | ||
11 | |||
12 | // texture sampler uniforms | ||
13 | uniform sampler2D u_tex0; | ||
14 | uniform sampler2D u_tex1; | ||
15 | |||
16 | //uniform vec4 color; | ||
17 | //varying vec4 v_color; | ||
18 | varying float v_zNormal; | ||
19 | varying vec2 v_texcoord; | ||
20 | |||
21 | |||
22 | void main() | ||
23 | { | ||
24 | vec3 col; | ||
25 | if (v_zNormal >= 0.0) | ||
26 | col = texture2D(u_tex0, v_texcoord).xyz; | ||
27 | else | ||
28 | col = texture2D(u_tex1, v_texcoord).xyz; | ||
29 | |||
30 | gl_FragColor = vec4(col, 1.0); | ||
31 | //gl_FragColor = v_color; | ||
32 | } | ||