CVS: data/Shaders reflect.frag,1.4,1.5
Vivian Meazza <[email protected]> Wed, 7 Apr 2010 17:02:32 -0500
| Newsgroups | gmane.games.flightgear.cvc |
|---|---|
| Message-ID | <[email protected]> |
Update of /var/cvs/FlightGear-0.9/data/Shaders
In directory baron.flightgear.org:/tmp/cvs-serv12647
Modified Files:
reflect.frag
Log Message:
Bugfix - remove emissivity
Index: reflect.frag
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Shaders/reflect.frag,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- reflect.frag 2 Apr 2010 14:06:46 -0000 1.4
+++ reflect.frag 7 Apr 2010 22:02:22 -0000 1.5
@@ -96,10 +96,10 @@
reflFactor = clamp(reflFactor, 0.0, 1.0);
- // set adjust ambient
+ // set ambient adjustment to remove bluiness with user input
float ambient_offset = clamp(ambient_correction, -1.0, 1.0);
- vec4 ambient_Correction = mix(gl_LightSource[0].ambient, vec4(1.0, 1.0, 0.6, 1.0), 0.5)
- * ambient_offset;
+ vec4 ambient_Correction = vec4(gl_LightSource[0].ambient.rg, gl_LightSource[0].ambient.b * 0.6, 0.5) * ambient_offset ;
+ ambient_Correction = clamp(ambient_Correction, -1.0, 1.0);
// map noise vectore
vec4 noisevec = texture3D(Noise, rawpos.xyz);
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev