openclonk/src/graphics
Peter Wortmann 480ade634d Shiny materials, shader reorganisation
This implements the proposal made in the forum for "shiny" materials -
material can now determine the angle at which the most light is reflected.
Shiny materials might set this lower to approximate a "reflection" effect,
and increase the "spottiness" at the same time. To compensate for the
lack of brightness without light, "emittance" can be used.

Not sure this is the most elegant way to model this - the "proper" way
here would be to have emittance, shading and specular as three separate
light parameters instead of molding one into the other and using the third
to compensate.

Furthermore, this reorganises shaders in a major way: We reduce the
number of shader files down to three, pushing a number of possible
configurations into preprocessor. I believe this should be easier to
understand, which for the moment trumps theoretical extensibility
benefits.
2015-09-20 14:50:22 +01:00
..
Bitmap256.cpp Warning fixes 2015-08-31 19:52:39 +01:00
Bitmap256.h Update copyright notices 2013-12-23 13:03:19 +01:00
C4Draw.cpp Shader gamma implementation 2015-08-31 17:35:08 +01:00
C4Draw.h Shader gamma implementation 2015-08-31 17:35:08 +01:00
C4DrawGL.cpp Shiny materials, shader reorganisation 2015-09-20 14:50:22 +01:00
C4DrawGL.h Shader gamma implementation 2015-08-31 17:35:08 +01:00
C4DrawGLCtx.cpp GLX: More debug output, to be able to trace the code paths taken 2015-05-28 21:34:14 +02:00
C4DrawGLMac.h mac: Zoom in/out main menu commands also work in game mode, call Viewports. methods then 2014-02-16 10:01:14 +01:00
C4DrawGLMac.mm C4DrawGLMac: Put OSX 10.9 API usage into #ifdef block 2015-04-27 22:13:15 +02:00
C4DrawMeshGL.cpp Shader gamma implementation 2015-08-31 17:35:08 +01:00
C4DrawT.cpp Fix headless build 2015-06-17 21:30:56 +02:00
C4DrawT.h Fix headless build 2015-06-17 21:30:56 +02:00
C4Facet.cpp Rename BoundBy to Clamp 2015-02-12 23:05:55 +01:00
C4Facet.h Update copyright notices 2013-12-23 13:03:19 +01:00
C4FacetEx.cpp Remove a lot of disabled legacy code, round 2 2015-03-25 20:02:53 +01:00
C4FacetEx.h Remove now unused C4FacetEx::DrawLineDw 2014-10-18 13:41:06 -04:00
C4FontLoader.cpp Warning fixes 2015-08-31 19:52:39 +01:00
C4FontLoader.h Update copyright notices 2013-12-23 13:03:19 +01:00
C4GraphicsResource.cpp Fix headless build 2015-06-17 21:30:56 +02:00
C4GraphicsResource.h Remove some redundant #includes 2015-01-25 18:53:48 +01:00
C4Shader.cpp Warning fixes 2015-08-31 19:52:39 +01:00
C4Shader.h Fix headless build 2015-06-17 21:30:56 +02:00
C4Surface.cpp Shader gamma implementation 2015-08-31 17:35:08 +01:00
C4Surface.h Shortcut C4Surface::GetTexAt for unsplit texture 2015-02-22 17:06:35 +01:00
C4SurfaceLoaders.cpp Remove a lot of disabled legacy code, round 2 2015-03-25 20:02:53 +01:00
CSurface8.cpp Remove a lot of disabled legacy code, round 2 2015-03-25 20:02:53 +01:00
CSurface8.h Introduce background map 2015-08-04 21:21:23 -04:00
StdPNG.cpp Remove a lot of disabled legacy code, round 2 2015-03-25 20:02:53 +01:00
StdPNG.h Update copyright notices 2013-12-23 13:03:19 +01:00