diff options
author | Valerio Virgillito | 2012-06-19 07:58:10 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-19 07:58:10 -0700 |
commit | 483ad57efcd6475776f580c3af5b60e6deeaf781 (patch) | |
tree | 3bc8f2b21826c0ee6d37bc77753d45a882783cbf /assets/shaders/Flag.frag.glsl | |
parent | 918a4f5870e972b6e4e301c3237e065a1ffd26f5 (diff) | |
parent | c65c532d081afd73e4a325abe4ab97c6726c02db (diff) | |
download | ninja-483ad57efcd6475776f580c3af5b60e6deeaf781.tar.gz |
Merge pull request #298 from ericmueller/Textures
Textures
Diffstat (limited to 'assets/shaders/Flag.frag.glsl')
-rw-r--r-- | assets/shaders/Flag.frag.glsl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/assets/shaders/Flag.frag.glsl b/assets/shaders/Flag.frag.glsl new file mode 100644 index 00000000..b05b4888 --- /dev/null +++ b/assets/shaders/Flag.frag.glsl | |||
@@ -0,0 +1,20 @@ | |||
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 | uniform sampler2D u_tex0; | ||
13 | |||
14 | varying vec2 v_uv; | ||
15 | |||
16 | void main(void) | ||
17 | { | ||
18 | vec3 col = texture2D(u_tex0, v_uv).xyz; | ||
19 | gl_FragColor = vec4(col,1.0); | ||
20 | } \ No newline at end of file | ||