File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed
examples_tests/22.RaytracedAO Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -11,25 +11,28 @@ if NOT EXIST %denoiser_dir%/denoisertonemapper.exe (
11
11
REM 1.ColorFile 2.AlbedoFile 3.NormalFile 4.BloomPsfFilePath(STRING) 5.BloomScale(FLOAT) 6.BloomIntensity(FLOAT) 7.TonemapperArgs(STRING)
12
12
call :denoise %1 %2 %3 %4 %5 %6 %7
13
13
14
+
14
15
EXIT /B %ERRORLEVEL%
15
16
16
17
:denoise
17
- if NOT EXIST %~dpn1 .exr (
18
- echo BatchScriptError: Denoiser input file doesn't exist. ^ (at %~dpn1 .exr^ )
18
+
19
+ set color_file = " %~dpn1 .exr"
20
+ set albedo_file = " %~dpn2 .exr"
21
+ set normal_file = " %~dpn3 .exr"
22
+ set output_file = " %~dpn1 _denoised.exr"
23
+
24
+ if NOT EXIST %color_file% (
25
+ echo BatchScriptError: Denoiser input file doesn't exist. ^ (at %color_file% ^ )
19
26
EXIT /B 0
20
27
)
21
- if NOT EXIST %~dpn2 .exr (
22
- echo BatchScriptError: Denoiser input file doesn't exist. ^ (at %~dpn2 .exr ^ )
28
+ if NOT EXIST %albedo_file% (
29
+ echo BatchScriptError: Denoiser input file doesn't exist. ^ (at %albedo_file% ^ )
23
30
EXIT /B 0
24
31
)
25
- if NOT EXIST %~dpn3 .exr (
26
- echo BatchScriptError: Denoiser input file doesn't exist. ^ (at %~dpn3 .exr ^ )
32
+ if NOT EXIST %normal_file% (
33
+ echo BatchScriptError: Denoiser input file doesn't exist. ^ (at %normal_file% ^ )
27
34
EXIT /B 0
28
35
)
29
- set color_file = %~dpn1 .exr
30
- set albedo_file = %~dpn2 .exr
31
- set normal_file = %~dpn3 .exr
32
- set output_file = %~dpn1 _denoised.exr
33
36
set bloom_file = %~f4
34
37
set bloom_scale = %~5
35
38
set bloom_intensity = %~6
You can’t perform that action at this time.
0 commit comments