File tree Expand file tree Collapse file tree 2 files changed +21
-15
lines changed
examples_tests/22.RaytracedAO Expand file tree Collapse file tree 2 files changed +21
-15
lines changed Original file line number Diff line number Diff line change 1
1
@ echo off
2
2
3
- set /p borderSz = " Border size: "
3
+ REM examplary usage:
4
+ REM mergeCubemap.bat 50 mergedImage.png right.png left.png top.png bottom.png front.png back.png
4
5
5
- set /p img = " Image to extract from: "
6
+ set borderSz = %1
6
7
7
- set /p right = " Right path: "
8
- set /p left = " Left path: "
9
- set /p top = " Top path: "
10
- set /p bottom = " Bottom path: "
11
- set /p front = " Front path: "
12
- set /p back = " Back path: "
8
+ set img = %2
9
+
10
+ set right = %3
11
+ set left = %4
12
+ set top = %5
13
+ set bottom = %6
14
+ set front = %7
15
+ set back = %8
13
16
14
17
REM set extracted image size
15
18
for /f " tokens=*" %%s in ('magick identify -format " %%w " %img% ') do set sz = %%s
Original file line number Diff line number Diff line change 1
1
@ echo off
2
2
3
- set /p right = " Right path: "
4
- set /p left = " Left path: "
5
- set /p top = " Top path: "
6
- set /p bottom = " Bottom path: "
7
- set /p front = " Front path: "
8
- set /p back = " Back path: "
9
- set /p output = " Output image name (without extension):"
3
+ set right = %1
4
+ set left = %2
5
+ set top = %3
6
+ set bottom = %4
7
+ set front = %5
8
+ set back = %6
9
+ set output = %7
10
+
11
+ REM examplary usage:
12
+ REM mergeCubemap.bat right.png left.png top.png bottom.png front.png back.png outputImageName
10
13
11
14
REM set image size
12
15
for /f " tokens=*" %%s in ('magick identify -format " %%w " %right% ') do set sz = %%s
You can’t perform that action at this time.
0 commit comments