Lasse Öörni
5b93abee14
Removed unused variables related to temporal antialiasing.
2011-06-15 23:16:48 +00:00
Lasse Öörni
3db2c154e5
Added forward rendering multisample support for OpenGL.
...
Added OpenGL context delete/recreate mechanism.
2011-06-15 22:45:10 +00:00
Lasse Öörni
464dbd47ab
Fixed performance issues on ATI graphics cards by creating a packed depth stencil as a renderbuffer, not as a texture.
2011-06-15 17:58:32 +00:00
Lasse Öörni
3bb01cb0ed
Added threshold value to the edge filter.
2011-06-15 16:24:50 +00:00
Lasse Öörni
83bf3d1464
Switched to NVIDIA FXAA II based edge filter.
2011-06-15 13:33:16 +00:00
Lasse Öörni
bea4f054c7
Tweaked the edge filter.
...
Fixed missing stencil buffer when using deferred antialiasing under OpenGL.
2011-06-15 06:56:19 +00:00
Lasse Öörni
87f9bbd846
Switched back to a edge filter for deferred antialiasing, as temporal antialiasing causes problems when both the camera and objects move.
...
Fixed infinite loop in HashMap copy.
2011-06-14 21:10:27 +00:00
Lasse Öörni
0ec486db9e
Fixed crash in OpenGL shader program cleanup.
2011-06-14 09:00:27 +00:00
Lasse Öörni
1c26218eeb
Fixed a logic error where a OpenGL ShaderVariation would hold a link to a single ShaderProgram, although it can be linked to many.
...
Fixed a possible bug in CollisionShape where the wrong amount of vertex data would be allocated for a triangle mesh.
ShaderVariations no longer hold a weak pointer to the parent shader.
Changed shader variation compile/creation to happen on demand.
Optimized drawing triangle mesh physics debug geometry.
Changed OpenGL ShaderProgram to remember last parameter sources (instead of Graphics remembering them globally) to eliminate redundant uniform assignment after changing shaders.
OpenGL VertexBuffer & IndexBuffer will create a new data store if locking the whole buffer in discard mode.
Removed most ClearParameterSources() calls from view rendering as unnecessary.
2011-06-13 21:54:57 +00:00
Lasse Öörni
ed3751e1f8
Fixed ambient quad shader.
2011-06-13 06:43:08 +00:00
Lasse Öörni
1c5e878832
Check that render targets are supported before allowing auxiliary views.
2011-06-13 06:41:47 +00:00
Lasse Öörni
9c9643508c
Use GL_DEPTH_COMPONENT24 instead of the packed depth stencil for OpenGL deferred rendering depth buffer, because the packed format seems to be slower.
...
Removed light prepass rendering support, as it has implementation difficulties under OpenGL and is often unsatisfactory in performance and specular lighting quality.
Removed the shader subdirectories.
Added option to specify whether single-channel images are to be interpreted as luminance or alpha, when loading into a texture.
2011-06-12 23:38:54 +00:00
Lasse Öörni
ecdcd5b940
Fixed missing depth texture in light prepass rendering.
2011-06-12 18:26:27 +00:00
Lasse Öörni
ea081bf526
Code cleanup. Removed obsolete light shader variations from the variation name list.
...
Clear the destination stencil in OpenGL deferred rendering.
2011-06-12 18:13:47 +00:00
Lasse Öörni
2669231c19
Added OpenGL related documentation.
2011-06-12 15:47:21 +00:00
Lasse Öörni
9335edc5ed
Removed the need to lock vertex data in read-only mode for CPU-side processing.
...
Changed OpenGL immediate mode rendering to use CPU memory vertex arrays.
Fixed GLSL errors.
2011-06-12 14:57:42 +00:00
Lasse Öörni
97238168c7
Simplified the way of immediate geometry updating on OpenGL, which also prevents pipeline stalls (use BufferData instead of locking.)
2011-06-12 09:38:09 +00:00
Lasse Öörni
cfca102c87
Fixed OpenGL slope scaled depth bias.
2011-06-11 08:47:46 +00:00
Lasse Öörni
2290441ea2
Fixed missing depth reconstruction in deferred rendering ambient quad on OpenGL.
2011-06-11 08:38:00 +00:00
Lasse Öörni
5db24c8d02
Renamed OpenGL/Direct3D9 implemntation and shader directories.
2011-06-11 07:39:58 +00:00
Lasse Öörni
483413e472
Fixed the UI not rendering on OpenGL.
2011-06-10 23:04:36 +00:00
Lasse Öörni
c9c0610709
Added alternative OpenGL rendering path, not fully complete yet.
...
Fixed bugs in HashMap / HashSet.
2011-06-10 22:35:43 +00:00
Lasse Öörni
25bd3a257c
Do not use equal depth test.
...
Fixed GetParentPath().
Removed unused vertex color shader code from deferred shaders.
2011-06-10 10:17:35 +00:00
Lasse Öörni
a66b1fc648
Fixed shadow map scissor getting always disabled.
2011-06-07 06:25:08 +00:00
Lasse Öörni
ba48113ccd
Turn scissor test off if scissor larger than the screen.
2011-06-06 20:59:32 +00:00
Lasse Öörni
b7f1eecfd0
Restructured #ifdefs in shaders.
2011-06-05 16:07:50 +00:00
Lasse Öörni
1d036b34ac
Fixed crash in ShaderCompiler.
...
Split Common.hlsl into smaller hlsl include files.
2011-06-05 11:53:39 +00:00
Lasse Öörni
c3d68e849c
Added RemoveShaderParameter to Material.
2011-06-04 12:19:17 +00:00
Lasse Öörni
2bee05deb9
Reordered batch setup.
...
Removed unnecessary public Graphics functions.
Material & view-global shader parameters are stored into a HashMap.
Fixed HashMap bugs.
2011-06-04 09:58:39 +00:00
Lasse Öörni
b011bb9c6d
Removed double copyright notice.
2011-06-04 08:32:57 +00:00
Lasse Öörni
e656bf8fe1
Comment cleanup.
2011-06-03 22:10:16 +00:00
Lasse Öörni
41260f0233
Set global shader parameters when rendering a batch or a full-screen quad; do not set them beforehand.
...
Added ToVector4() to Color.
2011-06-03 22:07:08 +00:00
Lasse Öörni
141d192225
Fixed Camera's InverseWorldTransform(), which should be GetInverseWorldTransform().
2011-06-02 19:43:38 +00:00
Lasse Öörni
5cb3afdbc7
Minor code cleanup.
2011-06-02 13:42:51 +00:00
Lasse Öörni
76144c8c4b
Fixed plural in array variable names.
2011-06-02 12:05:47 +00:00
Lasse Öörni
7a231ed820
Load model data directly into the vertex buffer instead of doing an intermediate copy.
2011-06-02 09:04:44 +00:00
Lasse Öörni
9c6fc5e356
Fixed HashMap index operator.
2011-06-01 06:04:07 +00:00
Lasse Öörni
dca33c3b34
Unified the shader parameter setting API.
2011-05-31 21:29:33 +00:00
Lasse Öörni
887cd80dcb
Removed unnecessary OBJECT macro from ShaderVariation.
2011-05-30 21:18:24 +00:00
Lasse Öörni
d96093e24c
Moved check of needing shader parameter / texture update to Graphics.
2011-05-30 17:40:17 +00:00
Lasse Öörni
7da01092b6
Renamed ShaderProgram to ShaderVariation.
2011-05-29 21:24:35 +00:00
Lasse Öörni
3f1f71dd06
Fixed ResourceCache error messages.
2011-05-29 18:10:03 +00:00
Lasse Öörni
5cc2a32cb8
Fixed comment.
2011-05-29 13:30:41 +00:00
Lasse Öörni
634b5cc81b
Added division by type size for pointer hashes.
...
Fixed HashMap bugs.
Removed HashMap / HashSet range based operations as the list is not ordered.
2011-05-29 13:11:44 +00:00
Lasse Öörni
f899c2f7ca
Fixed bugs in Map.
...
Added HashSet & HashMap classes.
Use HashSet in performance-critical parts of the Renderer library.
2011-05-29 09:42:41 +00:00
Lasse Öörni
977dd11341
Added functions to query most often used texture formats, so that application code does not need to include RendererImpl.h.
2011-05-28 16:02:20 +00:00
Lasse Öörni
fa3fb7b2fc
Added LockedRect structure for textures so that application code does not need to use the corresponding Direct3D structures directly.
...
Fixed comments.
2011-05-28 11:47:37 +00:00
Lasse Öörni
486d4902c8
Simplified window message handling related to activation/inactivation and minimizing the window.
...
Combined Activated & Inactivated events into the Activation event and moved it to GraphicsEvents.
2011-05-26 21:52:18 +00:00
Lasse Öörni
674ffb38a3
Added try-catch for out of memory error.
2011-05-25 13:43:42 +00:00
Lasse Öörni
1911a90504
Fixed Batch.cpp.
2011-05-25 08:41:26 +00:00