|
From: <axl...@us...> - 2009-06-14 20:34:22
|
Revision: 336
http://hgengine.svn.sourceforge.net/hgengine/?rev=336&view=rev
Author: axlecrusher
Date: 2009-06-14 20:32:37 +0000 (Sun, 14 Jun 2009)
Log Message:
-----------
don't lose negative information
Modified Paths:
--------------
Mercury2/testShader.frag
Modified: Mercury2/testShader.frag
===================================================================
--- Mercury2/testShader.frag 2009-06-14 20:16:34 UTC (rev 335)
+++ Mercury2/testShader.frag 2009-06-14 20:32:37 UTC (rev 336)
@@ -4,5 +4,5 @@
void main()
{
// gl_FragData[0] = texture2D(tex1, gl_TexCoord[0].st);
- gl_FragData[0].rgb = normalize(normal);
+ 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.
|