1
0
Fork 0
Commit graph

15 commits

Author SHA1 Message Date
Vivian Meazza
a37de2ec49 Standardize fog
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2011-12-01 21:05:05 +00:00
Erik Hofman
aff94b66ed fix another typo 2011-07-16 15:53:25 +02:00
Erik Hofman
2e441b27b5 fix a typo 2011-07-16 15:52:03 +02:00
Erik Hofman
9c69635df9 Prevent a device by zero. 2011-07-16 15:49:31 +02:00
Erik Hofman
095e535082 Don't let the urban shader and the landmass shader fight over the city type terrain and restrict the landmass shader to only below a quality of 3.5 2011-07-16 15:30:32 +02:00
Erik Hofman
16c73c0e5e Move the fogCoord calculation to the shader to limit the number of varyings to 7 2011-07-16 11:52:54 +02:00
Erik Hofman
71283a3eae Bring the old urban shader (qualiti level=3.5) back to life on my video hardware by restricting the number of varying variables to a maximum of seven. 2011-07-16 11:11:06 +02:00
fredb
1a986d8747 Use quality level inside landmass fragment shader 2010-04-10 15:08:29 +00:00
fredb
5d76d5f3f5 Landmass update: add a triangle for the ground and don't apply relief on it 2010-04-02 07:06:39 +00:00
fredb
d73a93f284 Disable self shadowing for now to gain some fps on older GPU. Should be configurable in the future 2010-04-01 20:59:17 +00:00
fredb
24d8e9293c Add relief mapping to landmass effect 2010-03-28 17:00:19 +00:00
stuart
6b4857ce8c Allow the snow level of the landmass shader to be set from the property system, and expose it in the rendering dialog. Could be used in future to set the snow level based on the current weather. 2010-03-27 14:02:56 +00:00
timoore
dfb8181f34 more ATI fixes for crops and landmass shaders
Same problem with material state, except this time with the diffuse component.


Author: Tim Moore <timoore@redhat.com>
2010-02-12 14:43:26 +00:00
timoore
421ee253e6 fix shader bugs on ATI hardware
The main problem was using gl_FrontMaterial.ambient with a color mode
of AMBIENT_AND_DIFFUSE i.e., the fixed function path would take both the
ambient colors from the vertex color value. Also, some vertex shaders
were not writing gl_FrontColor even though the fragment shader was
accessing gl_Color.


Author: Tim Moore <timoore@redhat.com>
2010-02-12 11:38:53 +00:00
timoore
943ba2a4fe Till Busch - effects, shaders and textures for crop and water effects
Incorporated changes to effects file syntax. Changed Till's landmass
to mix in the base terrain texture. Some shader cleanup.

Also, add a GUI control for enabling shaders.
2009-08-08 10:17:58 +00:00