0ad/source/renderer
Ykkrosh 555deea136 Fix conditional defines to not construct new CShaderDefines frequently
CShaderDefines is designed to be efficient to copy and compare, but not
to construct. Conditional defines were constructing new CShaderDefines
for many models every frame.

Precompute all the possible conditional combinations of CShaderDefines
when a material is first loaded, so they can be looked up at no cost
when rendering.

This was SVN commit r13902.
2013-09-29 00:30:58 +00:00
..
scripting Changes the Renderer to expose global functions to scripts instead of using CJSObject. 2013-09-21 08:24:45 +00:00
AlphaMapCalculator.cpp Simplify the overly-complex CppDoc-breaking file headers 2009-04-18 17:51:05 +00:00
AlphaMapCalculator.h Simplify the overly-complex CppDoc-breaking file headers 2009-04-18 17:51:05 +00:00
BlendShapes.h fix relics of GPL comment insertion (removing empty description comments and in some cases adding new file descriptions) 2009-05-03 11:47:38 +00:00
DecalRData.cpp Fix conditional defines to not construct new CShaderDefines frequently 2013-09-29 00:30:58 +00:00
DecalRData.h Fixes actor viewer bug where view was obstructed by map's water level. Fixes #1562. 2012-09-28 18:20:36 +00:00
HWLightingModelRenderer.cpp Add support for multiple UVs and data driven texture loading. From myconid's patches. Fixes #1493 and fixes #1497. 2012-07-23 22:49:46 +00:00
HWLightingModelRenderer.h Update renderer design to be more flexible and data-driven based on material and shader definitions. 2012-04-03 18:44:46 +00:00
InstancingModelRenderer.cpp Fix rendering artifacts with novbo=true gentangents=true 2013-08-21 21:01:32 +00:00
InstancingModelRenderer.h ao/parallax/normal/specular/emissive mapping; windy trees; time manager; render queries; conditional defines 2012-08-06 19:10:47 +00:00
MikktspaceWrap.cpp GPU-skinned tangent-space effects for non-instanced units, plus a bit of cleanup. 2012-10-29 13:20:21 +00:00
MikktspaceWrap.h GPU-skinned tangent-space effects for non-instanced units, plus a bit of cleanup. 2012-10-29 13:20:21 +00:00
ModelRenderer.cpp Fix conditional defines to not construct new CShaderDefines frequently 2013-09-29 00:30:58 +00:00
ModelRenderer.h GPU-skinned tangent-space effects for non-instanced units, plus a bit of cleanup. 2012-10-29 13:20:21 +00:00
ModelVertexRenderer.h Update renderer design to be more flexible and data-driven based on material and shader definitions. 2012-04-03 18:44:46 +00:00
OverlayRenderer.cpp Use prefix increment operator for iterators (for consistency), refs #1852, #1064 2013-05-22 18:41:13 +00:00
OverlayRenderer.h Makes some classes NONCOPYABLE, based on patch by Markus, refs #1852 2013-05-22 21:40:56 +00:00
ParticleRenderer.cpp Bind textures correctly to GLSL sampler uniforms. 2012-04-10 21:07:52 +00:00
ParticleRenderer.h Makes some classes NONCOPYABLE, based on patch by Markus, refs #1852 2013-05-22 21:40:56 +00:00
PatchRData.cpp Fix conditional defines to not construct new CShaderDefines frequently 2013-09-29 00:30:58 +00:00
PatchRData.h Slight clean up of the water code. Uses vertex data instead of a texture for foam. Should be faster to generate and render. Still no Atlas support. 2013-04-27 12:20:42 +00:00
PostprocManager.cpp Fixes some build errors from the OS X 10.5 SDK, refs #1768 2012-12-18 22:58:34 +00:00
PostprocManager.h Postproc manager 2012-10-15 10:34:23 +00:00
Renderer.cpp Changes the Renderer to expose global functions to scripts instead of using CJSObject. 2013-09-21 08:24:45 +00:00
Renderer.h Changes the Renderer to expose global functions to scripts instead of using CJSObject. 2013-09-21 08:24:45 +00:00
RenderModifiers.cpp Postproc manager 2012-10-15 10:34:23 +00:00
RenderModifiers.h Add support for multiple UVs and data driven texture loading. From myconid's patches. Fixes #1493 and fixes #1497. 2012-07-23 22:49:46 +00:00
Scene.cpp # Initial version of new particle system. 2011-04-03 19:15:15 +00:00
Scene.h Pretty unit selection overlay rings. Fixes #824. 2012-04-22 04:04:02 +00:00
ShadowMap.cpp Fixes some build errors from the OS X 10.5 SDK, refs #1768 2012-12-18 22:58:34 +00:00
ShadowMap.h Improved shadow filtering, from eihrul. 2012-05-21 19:23:14 +00:00
SkyManager.cpp Fixes build warning and cleans up a few things 2012-11-26 02:28:35 +00:00
SkyManager.h Fixes build warning and cleans up a few things 2012-11-26 02:28:35 +00:00
TerrainOverlay.cpp Ticket 1612: Fixed overlay z-fighting in GLSL mode 2012-08-21 16:28:06 +00:00
TerrainOverlay.h Add support for texture-based terrain overlays. 2012-04-24 16:46:32 +00:00
TerrainRenderer.cpp Fix a swap between reflections and refractions in config.cfg . Disabling "Render Reflections" now reverts to the skybox for better results. 2013-08-24 14:44:38 +00:00
TerrainRenderer.h fixes #1572 and fixes #932 2012-10-31 18:42:17 +00:00
TexturedLineRData.cpp Removed reverse dependency on SOverlayTexturedLine from CTexturedLineRData; fixes dangling pointer dereference. Fixes #1495. 2012-06-17 03:40:35 +00:00
TexturedLineRData.h Removed reverse dependency on SOverlayTexturedLine from CTexturedLineRData; fixes dangling pointer dereference. Fixes #1495. 2012-06-17 03:40:35 +00:00
TimeManager.cpp added licensing headers to some of the new files 2012-08-06 21:34:41 +00:00
TimeManager.h added licensing headers to some of the new files 2012-08-06 21:34:41 +00:00
VertexArray.cpp Pretty unit selection overlay rings. Fixes #824. 2012-04-22 04:04:02 +00:00
VertexArray.h Pretty unit selection overlay rings. Fixes #824. 2012-04-22 04:04:02 +00:00
VertexBuffer.cpp Fixes memory leak in CVertexBuffer::Release, patch by Markus, fixes #1933 2013-05-23 23:16:36 +00:00
VertexBuffer.h Makes some classes NONCOPYABLE, based on patch by Markus, refs #1852 2013-05-22 21:40:56 +00:00
VertexBufferManager.cpp # New territory border rendering. 2011-07-30 00:56:45 +00:00
VertexBufferManager.h Pretty unit selection overlay rings. Fixes #824. 2012-04-22 04:04:02 +00:00
WaterManager.cpp Improve on-water shadows. Fix an issue with foam looking static. Add anisotropic filtering (x4) to the water normal texture for testing. 2013-08-24 14:12:39 +00:00
WaterManager.h Change the water manager so incremental updates to the water information is possible. Streamline a few things (and removes a not-really-used calculation to speed things up further). Fixes #2063 , refs #1743. 2013-08-18 09:27:11 +00:00