diff options
author | Scott Barta <sbarta@google.com> | 2012-03-01 12:35:35 -0800 |
---|---|---|
committer | Scott Barta <sbarta@google.com> | 2012-03-01 12:40:08 -0800 |
commit | 59b2e6871c65f58fdad78cd7229c292f6a177578 (patch) | |
tree | 2d4e7bfc05b93f40b34675d77e403dd1c25efafd /engine/src/core-data/Common/MatDefs/Gui/Gui.frag | |
parent | f9b30489e75ac1eabc365064959804e99534f7ab (diff) | |
download | jmonkeyengine-59b2e6871c65f58fdad78cd7229c292f6a177578.tar.gz |
Adds the jMonkeyEngine library to the build.
Adds the jMonkeyEngine open source 3D game engine to the build. This
is built as a static library and is only used by the Finsky client.
Change-Id: I06a3f054df7b8a67757267d884854f70c5a16ca0
Diffstat (limited to 'engine/src/core-data/Common/MatDefs/Gui/Gui.frag')
-rw-r--r-- | engine/src/core-data/Common/MatDefs/Gui/Gui.frag | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/engine/src/core-data/Common/MatDefs/Gui/Gui.frag b/engine/src/core-data/Common/MatDefs/Gui/Gui.frag new file mode 100644 index 0000000..caa666c --- /dev/null +++ b/engine/src/core-data/Common/MatDefs/Gui/Gui.frag @@ -0,0 +1,16 @@ +#ifdef TEXTURE
+uniform sampler2D m_Texture;
+varying vec2 texCoord;
+#endif
+
+varying vec4 color;
+
+void main() {
+ #ifdef TEXTURE
+ vec4 texVal = texture2D(m_Texture, texCoord);
+ gl_FragColor = texVal * color;
+ #else
+ gl_FragColor = color;
+ #endif
+}
+
|