Commit Graph

9869 Commits

Author SHA1 Message Date
Lasse Öörni
4beeb72cd2 Disregard normals in billboard vertex lighting.
Removed light stencil masking toggle, as there is no corresponding mechanism in light pre-pass rendering, and toggling it off usually results in a large performance drop.
2011-12-03 15:51:35 +00:00
Lasse Öörni
f9bfd4948f Shader refactoring.
Removed ambient + lit pass combining for less shader permutations, and to prime the Z-buffer with a lightweight pass in case there is a large amount of overdraw.
Moved ambient light calculation to the ambient pass vertex shader.
Added render mode toggle to the editor settings.
Note: OpenGL rendering is currently broken.
2011-12-03 14:06:35 +00:00
Lasse Öörni
cbbf1a74f9 Fixed non-shadowed spotlights in light pre-pass rendering.
Removed fallback pre-pass rendering due to objectionable visual quality.
2011-12-02 23:49:41 +00:00
Lasse Öörni
2d8e33949a Fixed SM2 fallback mode light pre-pass rendering. 2011-12-02 22:16:10 +00:00
Lasse Öörni
7e3be41dfb More fixes to light pre-pass light volume rendering. 2011-12-02 21:48:46 +00:00
Lasse Öörni
2f48b9bbe4 Deferred shadow/spot matrices fix. 2011-12-02 17:16:18 +00:00
Lasse Öörni
ceee03d828 Light rendering fixes. 2011-12-02 13:23:31 +00:00
Lasse Öörni
ac20c662e7 Fixed missing vertex lighting in light pre-pass material pass. 2011-12-02 09:49:37 +00:00
Lasse Öörni
c0d05666f8 Initial light volume rendering. 2011-12-02 08:22:37 +00:00
Lasse Öörni
fefa7bf6cd Initial light pre-pass rendering. Lighting not rendered yet. 2011-12-01 23:57:16 +00:00
Lasse Öörni
c20e0ada86 Added initial light pre-pass shaders. 2011-12-01 09:35:03 +00:00
Lasse Öörni
b90ceaf4d1 Initial preparation for light pre-pass rendering. 2011-11-30 22:26:37 +00:00
Lasse Öörni
0fbb02b5b5 Create an INTZ depth buffer on Direct3D9 if possible. 2011-11-30 18:01:16 +00:00
Lasse Öörni
50284fe9b6 Added extra keys to LightTest. 2011-11-29 23:53:12 +00:00
Lasse Öörni
abf00cafa9 Merged pixel shader uniforms.
Script code cleanup.
Added LightTest script.
2011-11-29 23:15:34 +00:00
Lasse Öörni
9a080ee900 Cleaned up comments. Removed Object::CreateObject() as unnecessary. 2011-11-28 19:00:28 +00:00
Lasse Öörni
0be96b3fca Updated documents. 2011-11-28 18:05:15 +00:00
Lasse Öörni
fbdd44c3b8 Fixed comments.
Added -logdebug command line option.
2011-11-28 18:04:25 +00:00
Lasse Öörni
aa5d18f5dd Updated License.txt. 2011-11-28 11:05:30 +00:00
Lasse Öörni
8cb99ac13b Updated to libcpuid 0.2.0 to not require the CPU core amount sanitation hack. 2011-11-28 09:31:20 +00:00
Lasse Öörni
65af224fa6 Removed zero-length file.
Disabled shader compilation warning related to vertex lights.
2011-11-27 19:47:02 +00:00
Lasse Öörni
471d3ec5ff Added libcpuid for improved CPU detection.
Added separate functions for querying logical & physical CPU count.
2011-11-27 17:45:03 +00:00
Lasse Öörni
b1ba025970 Fixed hyperthreading detection again.
Send frame update events in Engine::Update(), not in Timer::BeginFrame().
2011-11-27 13:40:40 +00:00
Lasse Öörni
998333b4b5 Fixed GCC build. 2011-11-27 12:26:10 +00:00
Lasse Öörni
e8c8a33ea0 Fixed hyperthreading detection code. 2011-11-27 12:11:26 +00:00
Lasse Öörni
92128e4bc4 Detect hyperthreading and halve amount of worker threads only if detected. 2011-11-27 01:08:09 +00:00
Lasse Öörni
1fbbf5f2cd Limit the amount of worker threads to half the available CPU cores. 2011-11-26 20:00:29 +00:00
Lasse Öörni
c5f6516aee Migrated to AngelScript 2.22.1 WIP. 2011-11-26 11:19:20 +00:00
Lasse Öörni
47f77d1d1c Fixed GLSL shaders. 2011-11-24 18:47:58 +00:00
Lasse Öörni
3cf25e801a Do not use "camera centered" coordinates for light calculations. 2011-11-24 18:38:03 +00:00
Lasse Öörni
04a7049bdf Slight optimizations in light-related operations. 2011-11-24 16:26:45 +00:00
Lasse Öörni
7cb8985e05 Convert to vertex lights when pixel light count exceeded. 2011-11-23 22:47:19 +00:00
Lasse Öörni
8b61a23cd0 Updated to newest ODE from svn. 2011-11-21 19:37:19 +00:00
Lasse Öörni
a69b8b7568 Fixed vertex lighting shader variation names. 2011-11-21 08:59:59 +00:00
Lasse Öörni
bc5dd97e4b Allow 6 vertex lights. 2011-11-21 07:54:31 +00:00
Lasse Öörni
a51afb0631 Initial vertex lighting support. 2011-11-21 00:17:52 +00:00
Lasse Öörni
67a0650cdb Fixed missing copy constructor specifiers in script classes. 2011-11-19 13:42:53 +00:00
Lasse Öörni
a48c7ccdfb Migrated to new scriptarray add-on. 2011-11-19 13:14:15 +00:00
Lasse Öörni
691b72d500 Added missing volatile keyword. 2011-11-18 08:34:56 +00:00
Lasse Öörni
59b855087c Fixed typo. 2011-11-18 00:32:03 +00:00
Lasse Öörni
f53f75f6f3 Fixed raycast early-out logic. 2011-11-18 00:31:21 +00:00
Lasse Öörni
5cf7e09324 Added Octree raycast that returns only a single drawable result.
Fixed conditions in raycast code.
2011-11-18 00:16:01 +00:00
Lasse Öörni
929a37f782 Fixed uninitialized shadow batch zone. 2011-11-17 22:22:32 +00:00
Lasse Öörni
57070cafc3 Limit to three worker threads for more consistent performance.
Ensure the FPU is set up similarly on each thread to avoid for example small errors in shadow camera calculations.
2011-11-17 21:31:40 +00:00
Lasse Öörni
75c33d8b5c Changed the global script property arguments to GetArguments() function, as it performs an expensive vector to array conversion on each call. 2011-11-17 18:34:49 +00:00
Lasse Öörni
79c229b67e For global per-frame light sorting, give priority to directional lights so that they will most likely be combined with the ambient pass. 2011-11-16 23:26:02 +00:00
Lasse Öörni
4c3be1f600 Added List::Resize().
Store light queues into a list instead of a vector for cleaner code.
Fixed copy-pasting local nodes in editor not making the components local.
2011-11-16 22:57:20 +00:00
Lasse Öörni
61b0277fdd Added kerning support to fonts. 2011-11-16 20:56:43 +00:00
Lasse Öörni
cbac6a30a5 Optimized large scene modify operations in the editor. 2011-11-14 23:36:39 +00:00
Lasse Öörni
642cde63d5 Cleaned up Unlit shader code. 2011-11-13 22:14:30 +00:00