|
From: <axl...@us...> - 2009-06-21 02:53:13
|
Revision: 349
http://hgengine.svn.sourceforge.net/hgengine/?rev=349&view=rev
Author: axlecrusher
Date: 2009-06-21 01:44:12 +0000 (Sun, 21 Jun 2009)
Log Message:
-----------
optimize
Modified Paths:
--------------
Mercury2/testShader.frag
Modified: Mercury2/testShader.frag
===================================================================
--- Mercury2/testShader.frag 2009-06-21 00:50:41 UTC (rev 348)
+++ Mercury2/testShader.frag 2009-06-21 01:44:12 UTC (rev 349)
@@ -4,5 +4,6 @@
void main()
{
// gl_FragData[0] = texture2D(HG_Texture0, gl_TexCoord[0].st);
- gl_FragData[0].rgb = (normalize(normal)+1.0)/2.0;
+ vec3 n = normalize(normal);
+ gl_FragData[0].rgb = 0.5 + 0.5 * n;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|