Emilian Huminiuc
4df2af2cef
SHADERS:fix "unified" fog function.
...
Signed-off-by: Emilian Huminiuc <emilianh@gmail.com>
2012-02-14 18:39:58 +02:00
Gijs de Rooy
6c971211b8
Quality slider overwrites custom shader settings. All effects now listen to the new sim/rendering/shaders/<foo> properties.
2011-12-12 17:04:36 +01:00
Vivian Meazza
746b38ca9c
Adapt to new rendering gui
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2011-12-01 21:44:10 +00:00
Tim Moore
564c69e10a
Issue 209: fix up inheritance of color mode uniform in material animation effect
...
The overriding of the color mode uniform in the default model effect
wasn't working. It's difficult to override the individual properties
of techniques, especially if their names aren't unique. So, I changed
the model-default effect to use a parameter for the color-mode
uniform; material-off.eff and material-diffuse.eff override that.
2010-12-20 09:39:06 +01:00
Tim Moore
d27174028e
shader optimizations
...
Use two-pass rendering for some shaders to reduce the cost of expensive shaders.
Implement some material animations using a shader uniform.
Eliminate use of gl_FrontFacing. It's too buggy on ATI/ Macintosh.
2010-08-14 00:13:16 +02:00
Tim Moore
c964caa845
workaround for gl_FrontFacing bug
...
gl_FrontFacing isn't well supported on some Macintosh / ATI combinations.
2010-06-15 19:29:24 +02:00
timoore
971b6c3ef2
light two-sided polygons
...
Also, remove model-default.frag; for the moment one fragment shader works for
both terrain and models.
Author: Tim Moore <timoore@redhat.com>
2009-11-19 16:20:51 +00:00
timoore
1e5f8c2aee
Provide some reasonable default textures
...
Author: Tim Moore <timoore@redhat.com>
2009-11-17 06:23:12 +00:00
timoore
fea02f249c
Add emissive and shininess parameters to default terrain and model effects
...
Whoops, forgot those.
Author: Tim Moore <timoore@redhat.com>
2009-11-16 07:24:32 +00:00
timoore
8e2077e330
Created different default shaders for models.
...
These use the vertex color as the diffuse part of the lighting equation,
instead of both ambient and diffuse.
Author: Tim Moore <timoore@redhat.com>
2009-11-14 06:19:09 +00:00
timoore
0ade02d9be
default effects file for models
...
Author: Tim Moore <timoore@redhat.com>
2009-11-14 06:18:44 +00:00