1
0
forked from 0ad/0ad
0ad/source/renderer
Ykkrosh deb64d36fc Fix rendering artifacts with novbo=true gentangents=true
glDrawRangeElements needs to know the range of vertexs that are used
by the index array. With VBOs it doesn't really matter if the range
is wrong (all the vertexes are in GPU memory anyway), but with CPU
vertex arrays the driver has to memcpy the given range of data, so
incorrect bounds will result in garbage data being rendered.

With gentangents, the rendered mesh can have more vertexes than the
original CModelDef, but was rendered with the CModelDef's vertex count.

Use the correct vertex count instead.

Refs #2050.

This was SVN commit r13734.
2013-08-21 21:01:32 +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 Fixes actor viewer bug where view was obstructed by map's water level. Fixes #1562. 2012-09-28 18:20:36 +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 GPU-skinned tangent-space effects for non-instanced units, plus a bit of cleanup. 2012-10-29 13:20:21 +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 my previous commit because obviously I had forgotten something. 2013-08-18 09:42:02 +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 Render initial game view during loading screen, to begin loading assets and eliminate ugly terrain blending artifacts. Refs #1663 2013-02-22 07:32:22 +00:00
Renderer.h Fix a non-fatal GL error, fix me forgetting to commit a file, remove the "3D" waviness setting as it was mostly redundant with HQ. 2012-11-05 12:14:04 +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 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
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 Switch X and Z loops in the foam generation, possible speed improvement. 2013-08-20 08:55:33 +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