openclonk/src/landscape/fow
Armin Burgmeier 88f8f75441 Add ambient lighting
This introduces a new texture, an ambient light map, that is generated
automatically at the beginning of the round by the sky portion of the
landscape. This basically makes everything that is close to sky visible
by default.

The shaders have been adapted so that they deploy direction-independent
lighting for the ambient component, and the current (diffuse) behaviour
for the diffuse component. This makes the shaders use an additional
texture unit that represents the ambient light. We can think about merging
this information into the light texture, but the coordinate systems are
different at the moment, so this could be performed at the stage of light
texture generation.

For meshes, the ambient material is not actually used, but instead a
diffuse light from the front is used. This makes many meshes look more
interesting, maybe also because the ambient material setting of most
meshes are not set correctly at the moment.
2014-11-17 09:35:50 -05:00
..
C4FoW.cpp Add ambient lighting 2014-11-17 09:35:50 -05:00
C4FoW.h Add ambient lighting 2014-11-17 09:35:50 -05:00
C4FoWAmbient.cpp Add ambient lighting 2014-11-17 09:35:50 -05:00
C4FoWAmbient.h Add ambient lighting 2014-11-17 09:35:50 -05:00
C4FoWBeam.cpp refactor and document: C4FoWLightSection only calculates the triangles now, C4FoWLight stitches everything together and renders 2014-11-16 18:57:42 +01:00
C4FoWBeam.h refactor and document: C4FoWLightSection only calculates the triangles now, C4FoWLight stitches everything together and renders 2014-11-16 18:57:42 +01:00
C4FoWBeamTriangle.h refactor and document: C4FoWLightSection only calculates the triangles now, C4FoWLight stitches everything together and renders 2014-11-16 18:57:42 +01:00
C4FoWDrawStrategy.cpp refactor and document: C4FoWLightSection only calculates the triangles now, C4FoWLight stitches everything together and renders 2014-11-16 18:57:42 +01:00
C4FoWDrawStrategy.h another build fix 2014-11-16 20:36:12 +01:00
C4FoWLight.cpp refactor and document: C4FoWLightSection only calculates the triangles now, C4FoWLight stitches everything together and renders 2014-11-16 18:57:42 +01:00
C4FoWLight.h refactor and document: C4FoWLightSection only calculates the triangles now, C4FoWLight stitches everything together and renders 2014-11-16 18:57:42 +01:00
C4FoWLightSection.cpp fix linker error for G++ and clang 2014-11-16 20:18:09 +01:00
C4FoWLightSection.h fix linker error for G++ and clang 2014-11-16 20:18:09 +01:00
C4FoWRegion.cpp revert my fix from yesterday 2014-10-12 13:00:52 +02:00
C4FoWRegion.h Add ambient lighting 2014-11-17 09:35:50 -05:00