seed r69 - trunk/examples/shader
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r69 - trunk/examples/shader
- Date: Mon, 3 Nov 2008 05:26:04 +0000 (UTC)
Author: racarr
Date: Mon Nov 3 05:26:04 2008
New Revision: 69
URL: http://svn.gnome.org/viewvc/seed?rev=69&view=rev
Log:
Add default shader.
Added:
trunk/examples/shader/default.glsl
Added: trunk/examples/shader/default.glsl
==============================================================================
--- (empty file)
+++ trunk/examples/shader/default.glsl Mon Nov 3 05:26:04 2008
@@ -0,0 +1,11 @@
+uniform sampler2D sampler0;
+
+void main(void)
+{
+ vec4 sample;
+ sample = texture2D(sampler0,
+ gl_TexCoord[0].st);
+ gl_FragColor = 1-sample;
+ gl_FragColor.a = gl_Color.a;
+}
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]