Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- set iview=D:\Applications\IrfanView\i_view64.exe
- set ddstool="C:\Program Files (x86)\NVIDIA Corporation\DDS Utilities\nvdxt.exe"
- %iview% %1_LF.png /rotate_l /convert tmp_1.png
- %iview% %1_RT.png /rotate_r /convert tmp_2.png
- %iview% %1_BK.png /rotate_r /rotate_r /convert tmp_3.png
- %iview% %1_FR.png /convert tmp_4.png
- %iview% %1_UP.png /hflip /convert tmp_5.png
- %iview% %1_DN.png /convert tmp_6.png
- %iview% /panorama=(1,tmp_1.png,tmp_2.png,tmp_3.png,tmp_4.png,tmp_5.png,tmp_6.png) /convert tmp_cubemap.png
- %ddstool% -u8888 -cubeMap -file tmp_cubemap.png -output %1-cubemap.dds
- del tmp_1.png
- del tmp_2.png
- del tmp_3.png
- del tmp_4.png
- del tmp_5.png
- del tmp_6.png
- del tmp_cubemap.png
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement