Commit Graph

9836 Commits

Author SHA1 Message Date
Lasse Öörni
aadc22f05a Changed WorkItem to a value type to make it easier to construct work queue tasks. 2011-10-31 07:56:48 +00:00
Lasse Öörni
f843523ee8 Removed the start/stop mechanism from WorkQueue. 2011-10-31 07:22:32 +00:00
Lasse Öörni
8c11839139 Optimized octree reinsertion of AnimatedModel by recalculating the bounding box during the threaded update. 2011-10-31 00:53:46 +00:00
Lasse Öörni
f5bb9e5487 Work queue & octree reinsertion optimizations. 2011-10-30 23:57:26 +00:00
Lasse Öörni
313610c346 Fixed GCC build. Log amount of created worker threads. 2011-10-30 21:30:03 +00:00
Lasse Öörni
f9d04676f8 Queue octree updates & reinsertions in a PODVector instead of a HashSet. 2011-10-30 20:50:43 +00:00
Lasse Öörni
d976a8043b Reverted TestSceneOld.as modifications. 2011-10-30 19:24:15 +00:00
Lasse Öörni
721885ba4a Divide geometry updates explicitly into main thread, worker threads, and none. 2011-10-30 19:22:26 +00:00
Lasse Öörni
c8089b1687 Initial work queue & multithreading support. 2011-10-30 18:08:39 +00:00
Lasse Öörni
7dad787a9d Added SpinLock class. 2011-10-29 19:27:06 +00:00
Lasse Öörni
62e5541039 Removed the duplicate FrameInfo structure for shadow rendering as unnecessary. 2011-10-29 12:32:05 +00:00
Lasse Öörni
353270e6c7 UpdateDistance() / UpdateGeometry() refactoring. LOD levels are calculated in UpdateDistance(), while UpdateGeometry() is strictly used for preparing GPU resources, and is called after culling and preparing batches.
Fixed possible bug in FindZone().
2011-10-29 12:18:47 +00:00
Lasse Öörni
668da79dc4 Added SM3 requirement to instancing shaders. 2011-10-27 20:35:44 +00:00
Lasse Öörni
41f5aeae88 Reduce shader permutations by requiring diffuse map for normal & specular mapping. 2011-10-27 20:08:25 +00:00
Lasse Öörni
163688c577 Removed unnecessary GLSL shader variations. 2011-10-27 19:57:37 +00:00
Lasse Öörni
0be37e8495 Shader refactoring. Forward shader split to Ambient, BlinnPhong, Unlit & Volumetric.
Added support for multiple variation groups to ShaderCompiler & GLShaderProcessor.
2011-10-27 19:51:14 +00:00
Lasse Öörni
960b8de398 Folded GetShadowPos() back into the lighting shader code as the function contains light-specific #ifdefs. 2011-10-27 07:56:33 +00:00
Lasse Öörni
8fb7ee1a69 Fixed GLSL code. 2011-10-27 07:00:39 +00:00
Lasse Öörni
bef427937c Lighting shader code cleanup.
Automatically set black fog color for additive blending, so that shaders do not necessarily have to take it into account themselves.
2011-10-27 06:57:47 +00:00
Lasse Öörni
75d74ea3f1 Removed unnecessary #ifdef from varyings. 2011-10-26 22:24:13 +00:00
Lasse Öörni
ce811badc3 Removed unnecessary shader permutations. 2011-10-26 22:20:46 +00:00
Lasse Öörni
dd9597a5ae Removed unnecessary #ifdef. 2011-10-26 21:27:11 +00:00
Lasse Öörni
0a6538f069 Further shader cleanup. 2011-10-26 21:15:12 +00:00
Lasse Öörni
d0cdfd6f1e Shader code cleanup. 2011-10-26 20:27:39 +00:00
Lasse Öörni
d5c42e8c2c Added Node::LookAt().
Added Quaternion::FromAxes().
2011-10-25 22:04:11 +00:00
Lasse Öörni
7e4bc727b4 Cleaned up Batch & instancing code. BatchGroup inherits from Batch to reduce unnecessary copying of values. 2011-10-25 20:08:34 +00:00
Lasse Öörni
b60a806058 Updated changelog in the docs as well. 2011-10-23 21:14:46 +00:00
Lasse Öörni
530a6f02ef Removed CoreData/Models directory. 2011-10-23 20:40:07 +00:00
Lasse Öörni
f4afb2e092 Moved the manipulator gizmo to Data directory for consistency. 2011-10-23 20:36:08 +00:00
Lasse Öörni
80130159ac Cleaned up graphics features change handling. 2011-10-23 20:01:49 +00:00
Lasse Öörni
6e51dffdeb Updated readme.
Allow to switch force SM2 / force fallback modes at runtime.
2011-10-23 18:18:47 +00:00
Lasse Öörni
35e58c42f9 Added select/deselect all in the editor. 2011-10-23 16:28:28 +00:00
Lasse Öörni
58eb27c25c Further fix for not rendering unnecessary shadow casters. 2011-10-23 14:53:11 +00:00
Lasse Öörni
d1ca0fd6cc Do not render unnecessary directional light shadow map splits. 2011-10-23 14:18:16 +00:00
Lasse Öörni
9c7908ca82 Do not show unused rendering passes in profiling. 2011-10-23 12:31:41 +00:00
Lasse Öörni
9d077e78a8 Code cleanup.
Fixed lit base pass optimization working only for the first subgeometry of an object.
Calculate per-subgeometry distances in UpdateDistance() for StaticModel & AnimatedModel.
2011-10-23 12:17:57 +00:00
Lasse Öörni
5f65f9a530 Dirty the zone if its priority changes. 2011-10-22 20:02:20 +00:00
Lasse Öörni
9fad97bbcc Changed gizmo update order so that it does not lag visually by one frame. 2011-10-22 19:04:09 +00:00
Lasse Öörni
bdc29caebd Reverted to AngelScript 2.21.1 because of crash with VariantMap.
Find the zone at far clip plane and use it for the background color.
Added zone mask for drawables, allowing to select which zones they can belong to.
When zone moves or changes its bounding box, clear the cached zone from all drawables that were inside.
2011-10-22 18:49:15 +00:00
Lasse Öörni
2ae33cd4fc Fixed missing Precompiled.h include. 2011-10-22 13:17:44 +00:00
Lasse Öörni
5d8ba5e295 Added missing notification of modified code. 2011-10-21 23:20:18 +00:00
Lasse Öörni
1c47bc6f20 Migrated to AngelScript 2.22.0 WIP. 2011-10-21 23:01:30 +00:00
Lasse Öörni
4f9f83eaab Made the move mode arrows smaller to match the scaling mode axes.
Corrected documentation about fallback mode shadow filtering.
2011-10-21 20:05:57 +00:00
Lasse Öörni
4ca9035ba5 Reimplemented the MSVC random number generator to produce same random number output on all platforms. 2011-10-21 19:12:20 +00:00
Lasse Öörni
2b57762508 Added zone property for Drawables in the script API where applicable.
Removed the viewmask attribute from Zone as it is not currently used.
2011-10-21 07:13:44 +00:00
Lasse Öörni
2fc9d75b9a Rewritten zone query handling. 2011-10-20 22:24:39 +00:00
Lasse Öörni
00cca6b83c Zone system refactoring. Now objects check which zone they're in, for per-object ambient light and fog settings. 2011-10-20 18:22:51 +00:00
Lasse Öörni
15e8c14623 Separated SetIntensitySortValue() into two separate functions.
Use the drawable's bounding box in light sort value calculations, instead of just the bounding box center.
Added Rect::Clip().
2011-10-19 23:03:36 +00:00
Lasse Öörni
563ad416e9 Further optimization and improvement of light intensity sorting. 2011-10-19 16:35:06 +00:00
Lasse Öörni
6d5aa888aa Tweaks to light intensity sorting. 2011-10-19 08:17:03 +00:00