Torque3D/Engine/source
Azaezel 2753f562e8 shadow caching
SPECIAL NOTE: highly suggest https://github.com/GarageGames/Torque3D/pull/1441 or a variation thereof to prevent debug spew and false-postives for occlusion results.

With significant research, development and prototyping assistance from both @andr3wmac (shaders and partial hook work), and @LuisAntonRebollo (additional culling)

System operates as follows:
1) materials are given an additional castDynamicShadows boolean entry. (Default at time of writing is true by request. Personal usage at time of writing defaults to false. value is default-initialized in materialDefinition.cpp. script/gui exposed)
2) lights are given a staticRefreshFreq and dynamicRefreshFreq (in milliseconds). script/gui exposed
3) materials are (effectively) sorted into dynamic and static shadowmap render lists based on flag. (see shadowMapPass.cpp)
4) initial shadowmaps are generated for each light and 'list'.
5) as each refreshFreq times out, the relevant shadowmap for a given light is refreshed.

Special notes:
dynamicRefreshFreq for all lights is set to a (script exposed) 8MS refresh timer.
StaticRefreshFreq for the lions share of lights defaults to 250 MS (1/4 of a second)
scattersky's embedded light, which is intended to operate in a mobile manner, defaults to 8
to reiterate, these are all customizable per-light via script/inspector gui in the case of alternate project needs.
2015-10-13 18:12:19 -05:00
..
app Removing stuff pertaining to demo modes and trials, as they're redundant now. 2015-07-01 23:36:56 -05:00
cinterface Remove value constructors for ConsoleValueRef & fix callbacks which use them. Fixes issue #1289 2015-05-08 09:04:04 +10:00
collision Issue found with PVS-Studio: 2015-07-16 22:02:18 -05:00
component Replaced a ton of ConsoleMethods with the DefineConsoleMethod Macro. 2014-11-03 22:42:51 -05:00
console backend correction for https://github.com/GarageGames/Torque3D/pull/1425 2015-09-25 17:09:41 -05:00
core Adds data to vector out of bounds reports 2015-08-12 16:17:08 -05:00
environment shadow caching 2015-10-13 18:12:19 -05:00
forest shadow caching 2015-10-13 18:12:19 -05:00
gfx Merges in Monkey's fixes PR with a resolution for a conflict 2015-09-03 22:58:57 -05:00
gui void GuiTextEditCtrl::execConsoleCallback() reversion 2015-09-16 12:55:27 -05:00
i18n Issue found with PVS-Studio: 2015-07-21 23:22:21 -05:00
lighting shadow caching 2015-10-13 18:12:19 -05:00
main Pass by const reference 2015-02-20 18:42:32 -05:00
materials shadow caching 2015-10-13 18:12:19 -05:00
math shadow caching 2015-10-13 18:12:19 -05:00
navigation Addresses roughly half of the C4189 errors though the following methodologies: 2015-07-29 03:03:27 -05:00
platform Merge pull request #1346 from eightyeight/fix-threadpool-tests 2015-08-21 00:07:55 -05:00
platformMac Merge pull request #1173 from JeffProgrammer/gestalt_fix_gg 2015-07-23 16:20:36 +10:00
platformPOSIX Fixes for dedicated build on linux. 2014-05-30 12:35:39 +02:00
platformSDL release the mouse from window constraints when poping up a window prompt 2015-08-10 21:54:30 -05:00
platformWin32 Merges in Monkey's fixes PR with a resolution for a conflict 2015-09-03 22:58:57 -05:00
platformX86UNIX Fix missing va_end's 2015-02-20 18:42:29 -05:00
postFx Issue found by PVS Studio: 2015-07-28 23:25:09 -05:00
renderInstance Corrected the terrain issue caused by unwanted early-outing due to prior changes. 2015-07-29 10:14:19 -05:00
scene shadow caching 2015-10-13 18:12:19 -05:00
sfx Issue found with PVS-Studio: 2015-07-21 23:22:21 -05:00
shaderGen Companion PR to #719 2015-08-28 00:27:08 -05:00
sim Redux of Winterleaf's PR 1001, with the suggested updated values. 2015-07-28 00:53:58 -05:00
T3D shadow caching 2015-10-13 18:12:19 -05:00
terrain Merge pull request #1379 from Azaezel/C4189 2015-09-02 19:46:28 -05:00
testing All unit tests that run now pass. 2014-09-29 11:38:44 +10:00
ts Merge pull request #1379 from Azaezel/C4189 2015-09-02 19:46:28 -05:00
util Issue found with PVS-Studio: 2015-07-16 22:02:18 -05:00
windowManager Further fixes to work around certain accelerators being missed, and additional command bleed-through. 2015-09-27 15:43:47 -05:00
ggEndOfLineFix.txt Engine directory for ticket #1 2012-09-19 11:15:01 -04:00