mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Added propagated multibake mode.
Temporarily disabled Precapture post effect.
This commit is contained in:
parent
78b2bcde0c
commit
43c1abbc96
4 changed files with 24 additions and 12 deletions
|
|
@ -28,15 +28,21 @@ function ProbeBakeDlg_RunBake::onClick(%this)
|
|||
%currentProgressValue = 0;
|
||||
|
||||
ProbeBakeDlg_Progress.setValue(%currentProgressValue);
|
||||
Canvas.repaint();
|
||||
|
||||
for(%iter=0; %iter < %numIter; %iter++)
|
||||
{
|
||||
%renderWithProbes = false;
|
||||
|
||||
if(%iter != 0)
|
||||
%renderWithProbes = true;
|
||||
|
||||
for(%i=0; %i < %probeCount; %i++)
|
||||
{
|
||||
%probe = getWord(%probeIds, %i);
|
||||
|
||||
%path = filePath($Server::MissionFile) @ "/" @ fileBase($Server::MissionFile) @ "/probes/";
|
||||
%probe.bake(%path, %resolution);
|
||||
%probe.bake(%path, %resolution, %renderWithProbes);
|
||||
|
||||
%currentProgressValue += %progressStep;
|
||||
ProbeBakeDlg_Progress.setValue(%currentProgressValue);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue