Skip to content

Commit 7261e69

Browse files
committed
Fix
1 parent 8670add commit 7261e69

File tree

2 files changed

+21
-15
lines changed

2 files changed

+21
-15
lines changed

examples_tests/22.RaytracedAO/extractCubemap.bat

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
@echo off
22

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
45

5-
set /p img="Image to extract from: "
6+
set borderSz=%1
67

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
1316

1417
REM set extracted image size
1518
for /f "tokens=*" %%s in ('magick identify -format "%%w" %img%') do set sz=%%s

examples_tests/22.RaytracedAO/mergeCubemap.bat

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
@echo off
22

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
1013

1114
REM set image size
1215
for /f "tokens=*" %%s in ('magick identify -format "%%w" %right%') do set sz=%%s

0 commit comments

Comments
 (0)