|
From: <axl...@us...> - 2009-06-15 00:08:47
|
Revision: 340
http://hgengine.svn.sourceforge.net/hgengine/?rev=340&view=rev
Author: axlecrusher
Date: 2009-06-15 00:08:01 +0000 (Mon, 15 Jun 2009)
Log Message:
-----------
correct texture binding
Modified Paths:
--------------
Mercury2/testShader.frag
Modified: Mercury2/testShader.frag
===================================================================
--- Mercury2/testShader.frag 2009-06-14 23:47:59 UTC (rev 339)
+++ Mercury2/testShader.frag 2009-06-15 00:08:01 UTC (rev 340)
@@ -1,8 +1,8 @@
-uniform sampler2D tex1;
+uniform sampler2D HG_Texture0;
varying vec3 normal;
void main()
{
-// gl_FragData[0] = texture2D(tex1, gl_TexCoord[0].st);
+// gl_FragData[0] = texture2D(HG_Texture0, gl_TexCoord[0].st);
gl_FragData[0].rgb = (normalize(normal)+1.0)/2.0;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|