1
0
Fork 0
Commit graph

465 commits

Author SHA1 Message Date
timoore
bfaaef8aef Effects and shaders for material animations
Author: Tim Moore <timoore@redhat.com>
2010-01-27 17:52:18 +00:00
timoore
8c55e1b2bc update to a more recent version of the cloud shader
Author: Tim Moore <timoore@redhat.com>
2009-11-26 16:15:45 +00:00
timoore
ab97ee326a effect for clouds
Author: Tim Moore <timoore@redhat.com>
2009-11-26 10:44:44 +00:00
timoore
ffa9cae11c New tree rendering algorithm
Draw trees in two passes, opaque and transparent. This allows us to
have some transparency, which is better looking, and dispense with
sorting.


Author: Tim Moore <timoore@redhat.com>
2009-11-23 21:53:56 +00:00
timoore
00e7027dce Move hard wired tree shader to an effect
Author: Tim Moore <timoore@redhat.com>
2009-11-21 23:35:47 +00: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
56fc0f9076 clamp lighting values and support transparency material animation
The transparency animation support is a hack, but should get the job done
for a bit.


Author: Tim Moore <timoore@redhat.com>
2009-11-17 21:57:07 +00:00
timoore
ca82d06aef in shaders, get alpha directly from diffuse material value
Just like the fixed function pipeline


Author: Tim Moore <timoore@redhat.com>
2009-11-17 06:23:21 +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
jmt
1531446fb2 From Lauri Peltonen (Zan):
These two patches allow use of external shaders as the tree and 3d cloud
shaders. The shaders are Shaders/3dcloud.{frag|vert} and
Shaders/tree.{frag|vert}. If the shader files are not found, the
original shaders included in the source are used.

This makes testing modifications to the shaders easier and faster. End
users should see no difference when using this.
2009-09-29 07:41:11 +00:00
ehofman
f0ecd16f3c Removed a line too many. 2009-08-22 12:36:38 +00:00
ehofman
43027bcc00 comment out unused code and add proper reflections for specular and diffuse color 2009-08-22 12:08:32 +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
timoore
30f844c961 fixes to terrain shader
Handle emission and light model ambient value.

Test if shininess is 0 to avoid pow(0, 0), which is undefined.
2009-07-19 18:54:10 +00:00
timoore
d4d89d2793 Terrain effect has a shader 2009-07-15 22:49:36 +00:00