Commit Graph

9869 Commits

Author SHA1 Message Date
Lasse Öörni
a102a45fb5 Circumvented normal mapping GLSL bug on older ATI drivers. 2012-01-01 12:43:18 +00:00
Lasse Öörni
47f02e994b Fixed typo. 2012-01-01 02:26:11 +00:00
Lasse Öörni
845b38c2b4 Allocate a screen buffer if rendering to texture in OpenGL deferred mode, and texture format is not RGBA.
Immediately clear all screen buffers when switching rendering mode.
2012-01-01 02:07:31 +00:00
Lasse Öörni
708b8b5d48 Fixed postprocessing viewport size when using postprocess-defined rendertargets. 2012-01-01 01:25:19 +00:00
Lasse Öörni
8a0d9f3c42 Further depth writing fix. 2012-01-01 01:14:49 +00:00
Lasse Öörni
f38c7fe55e Fixed writing the depth in OpenGL deferred shader. 2012-01-01 01:13:33 +00:00
Lasse Öörni
8b44eee163 Reverted main CMakeLists.txt. 2012-01-01 01:08:30 +00:00
Lasse Öörni
84e870c455 Allocate screen buffers in RGBA format to ensure FBO requirements in OpenGL deferred rendering. 2012-01-01 01:08:00 +00:00
Lasse Öörni
cc3ee34f58 Increased occlusion buffer depth bias.
Minor code cleanup.
Updated copyright for 2012.
2012-01-01 00:07:57 +00:00
Lasse Öörni
88645ee31b Updated script API. 2011-12-31 21:03:31 +00:00
Lasse Öörni
3f36d0ffc9 Removed nlerp animation blending as it was prone to artifacts.
Removed nlerp and operations using fast square root / fast inverse square root.
2011-12-31 21:02:32 +00:00
Lasse Öörni
00d3faa6e5 Fixed deferred specular color. 2011-12-31 19:40:45 +00:00
Lasse Öörni
43bff9083e Added missing HLSL deferred shaders. 2011-12-31 15:24:54 +00:00
Lasse Öörni
142f3c2e49 Fixed ResetRenderTargets() on OpenGL. 2011-12-31 15:06:37 +00:00
Lasse Öörni
9e871c1987 Removed automatic viewport reset on setting rendertarget to eliminate redundant API calls. However Graphics::ResetRenderTargets() resets the viewport. 2011-12-31 15:05:08 +00:00
Lasse Öörni
4a2e1b4456 Cleaned up deferred rendering viewport clear code.
Fixed UI not rendering correctly if multiple main viewports exist.
2011-12-31 14:50:23 +00:00
Lasse Öörni
d34a73bfb9 Added full deferred rendering in addition to light pre-pass.
Added missing vertex colored light pre-pass material shader permutation.
2011-12-31 14:20:29 +00:00
Lasse Öörni
777810d84f Updated to Open Asset Import Library rev. 1102. 2011-12-30 19:32:45 +00:00
Lasse Öörni
f0951eed31 Simplified the FogParams shader parameter. 2011-12-30 17:38:40 +00:00
Lasse Öörni
a39e2eb5eb Use simpler stencil test compare for light volumes. 2011-12-29 18:25:22 +00:00
Lasse Öörni
4b303496cd Minor shader optimizations. 2011-12-29 16:15:12 +00:00
Lasse Öörni
3be676f08c Added stencil write mask support. 2011-12-29 14:19:00 +00:00
Lasse Öörni
753478d64e Improved check for lights with no intensity. 2011-12-29 00:17:06 +00:00
Lasse Öörni
4311f615ac In AssetImporter, set default tickrate 4800 for animations that do not define a tickrate. This can also be configured from the command line.
Prevent bones with no skinned geometry (ie. dummies) affecting the animated model's bounding box.
2011-12-28 20:10:39 +00:00
Lasse Öörni
a2ae4917db Work around nonexistent GLSL array support on OS X. 2011-12-28 17:22:40 +00:00
Lasse Öörni
28dedc34c4 Fixed GLSL #version statement to come before defines. 2011-12-28 16:59:31 +00:00
Lasse Öörni
d2aba2ca56 Fixed GLSL. 2011-12-28 16:38:08 +00:00
Lasse Öörni
ccbfe5babc Further documentation fixes. 2011-12-28 15:10:46 +00:00
Lasse Öörni
96f3baa15e Fixed LightTest. 2011-12-28 14:42:42 +00:00
Lasse Öörni
700b9c6a02 Post-process documentation fix. 2011-12-28 14:38:23 +00:00
Lasse Öörni
408d063cf5 Documentation edits. 2011-12-28 14:36:55 +00:00
Lasse Öörni
3d105cbdb6 Updated readme for new version. 2011-12-28 14:19:18 +00:00
Lasse Öörni
7075513957 Cleaned up bloom shader code.
Split SampleOffsets shader parameter to GBufferInvSize and ShadowMapInvSize parameters.
Set Offsets & InvSize parameters for user-defined rendertargets during postprocessing.
Fixed bug on some NVIDIA drivers caused by using tex2Dlod on the hardware depth buffer.
2011-12-28 13:17:21 +00:00
Lasse Öörni
5503eb1978 Fixed GLSL bloom. 2011-12-28 02:06:08 +00:00
Lasse Öörni
a1c70a3476 Added bloom post-process effect.
Added global shader parameters to PostProcess.
Added possibility to specify texture units by number instead of name in materials and postprocesses.
2011-12-28 01:43:48 +00:00
Lasse Öörni
110a50ac74 Fixed OpenGL build. 2011-12-27 13:01:52 +00:00
Lasse Öörni
c7833616c7 Added missing files. 2011-12-27 12:57:58 +00:00
Lasse Öörni
9fc3d48c12 Changed Viewport to be a reference-counted object.
Changed the Viewport API to allow easier manipulation of the post-process chain.
Added PostProcess::Clone().
2011-12-27 12:57:03 +00:00
Lasse Öörni
5aa1a38a98 Added documentation for post-processing. 2011-12-26 23:48:56 +00:00
Lasse Öörni
bf8d7a53ca Fixed missing framebuffer blit in OpenGL mode when postprocesses exist but are disabled. 2011-12-26 16:43:01 +00:00
Lasse Öörni
f437a1ec04 Implemented OpenGL multisampled backbuffer resolve.
Fixed OpenGL greyscale shader.
2011-12-26 14:50:36 +00:00
Lasse Öörni
5541fc9d87 Resolve multisampled backbuffer for postprocessing. Not yet implemented on OpenGL. 2011-12-26 13:54:45 +00:00
Lasse Öörni
e5becbf392 Fixed OpenGL build. 2011-12-26 12:15:18 +00:00
Lasse Öörni
d76c21c4f2 Fixed postprocess rendertarget allocation divisor mode to use the viewport size, not the whole rendertarget.
Refactored Material to not store textures in a Vector, as the amount of texture units is fixed.
2011-12-26 02:34:28 +00:00
Lasse Öörni
55ce257a9c Initial postprocessing implementation. Reimplemented the FXAA edge filter using it. 2011-12-26 01:07:37 +00:00
Lasse Öörni
8968ce2609 Clamp light color to positive, as the result of negative color is erratic and depends on blend mode.
Exclude lights with zero intensity from rendering.
2011-12-25 00:47:05 +00:00
Lasse Öörni
d220b3aa89 Fixed NinjaSnowWar lightflash objects remaining in the scene indefinitely. 2011-12-25 00:34:56 +00:00
Lasse Öörni
cee327dfb2 Fixed GCC build. 2011-12-24 22:16:15 +00:00
Lasse Öörni
1b82b726bf Further optimization of enum attribute load. 2011-12-24 20:32:03 +00:00
Lasse Öörni
56b36f4ca2 Optimization to Serializable XML load & save. 2011-12-24 20:29:44 +00:00