1
0
Fork 0
Commit graph

22 commits

Author SHA1 Message Date
Frederic Bouvier
7e1ed19307 Put encode_gbuffer in a separate shader to please ATI and/or Mac OSX that doesn't like to have gl_FragData and gl_FragColor in the same program, even if one is never called 2012-05-04 09:34:00 +02:00
Emilian Huminiuc
f26472f614 Remove useless include_fog.vert from some of the effects.
Fis c/p error in ubershader-deferred.
Signed-off-by: Emilian Huminiuc <emilianh@gmail.com>
2012-05-03 00:01:59 +03:00
Emilian Huminiuc
ce08a30a58 Add missing uniform to model-combined technique 5. This should fix the lighting issues with the sky-dome shaders active and landmass
slider at 4.
Signed-off-by: Emilian Huminiuc <emilianh@gmail.com>
2012-05-02 13:22:43 +03:00
Frederic Bouvier
6c407de9cf Remove unneeded requirement. Should help older card with Rembrandt 2012-04-16 22:49:38 +02:00
Frederic Bouvier
c05b12a6ab Change normal encoding method to get rid of RG16 textures and buffers 2012-04-13 00:01:12 +02:00
Frederic Bouvier
ddf0c576e9 Hopefully fix the two-sided case for the Rembrandt renderer. Shadows are not fixed yet. 2012-04-03 23:30:35 +02:00
Emilian Huminiuc
d43770ab58 Effects/model-default.eff move skydome to technique 5 to provide more headroom
Effects/model-combined.eff fix techniques numbering. Make active under rembrandt too. add model-combined-deferred as a stub for now for specific
Rembrandt use.
Users of model-combined with normalmaps should change the technique number to 9, and duplicate that entry for technique 8.
Fix some longstanding png warnings. Provide null_reflectdir.png for model-combined
This should fix part of bug #726
Signed-off-by: Emilian Huminiuc <emilianh@gmail.com>
2012-03-31 15:00:36 +03:00
Frederic Bouvier
c4390ae31a Change default effects attached to terrain and models
Add a technique that initialize the buffers of the Rembrandt renderer
     (use Multi Render Target)
  Renumber techniques that depends on old technique 10 (now 11) of model-default
2012-03-25 19:03:52 +02:00
Frederic Bouvier
ebc1002139 Sunrises 1.2 by Thorsten Renk 2012-03-08 23:22:27 +01:00
Frederic Bouvier
3e241108ad Effects does not need to test if rembrandt is not activated. This would be the default 2012-03-06 23:11:46 +01:00
Frederic Bouvier
68ffab1066 Create the /sim/rendering/rembrandt boolean property (set to false) and test it in default effect 2012-03-04 21:51:32 +01:00
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