mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2024-11-26 11:34:15 +01:00
93 lines
2.4 KiB
Plaintext
93 lines
2.4 KiB
Plaintext
|
<?php
|
||
|
$fullWidth = $argv[1];
|
||
|
$fullHeight = $argv[2];
|
||
|
$scaleFactorX = $fullWidth / 1280.0;
|
||
|
$scaleFactorY = $fullHeight / 720.0;
|
||
|
|
||
|
$title = $fullWidth . "x" . $fullHeight;
|
||
|
|
||
|
$aspect = $fullWidth / (float)$fullHeight;
|
||
|
if (round($aspect*10) == 23 || round($aspect*10) == 24)
|
||
|
$title = $title . " (21:9)";
|
||
|
?>
|
||
|
[Definition]
|
||
|
titleIds = 0005000010176900,0005000010176A00,0005000010162B00
|
||
|
name = "Splatoon - <?=$title?>"
|
||
|
version = 2
|
||
|
|
||
|
[TextureRedefine] # tv
|
||
|
width = 1280
|
||
|
height = 720
|
||
|
overwriteWidth = <?=round($scaleFactorX*1280)?>
|
||
|
overwriteHeight = <?=round($scaleFactorY*720)?>
|
||
|
|
||
|
[TextureRedefine] # half-res alpha
|
||
|
width = 640
|
||
|
height = 360
|
||
|
formatsExcluded = 0x41A,0x431 # exclude obvious textures
|
||
|
overwriteWidth = <?=round($scaleFactorX*640)?>
|
||
|
overwriteHeight = <?=round($scaleFactorY*360)?>
|
||
|
|
||
|
[TextureRedefine] # quarter-res alpha
|
||
|
width = 320
|
||
|
height = 180
|
||
|
formatsExcluded = 0x41A,0x431 # exclude obvious textures
|
||
|
overwriteWidth = <?=round($scaleFactorX*320)?>
|
||
|
overwriteHeight = <?=round($scaleFactorY*180)?>
|
||
|
|
||
|
[TextureRedefine] # squid sisters
|
||
|
width = 1024
|
||
|
height = 576
|
||
|
overwriteWidth = <?=round($scaleFactorX*1024)?>
|
||
|
overwriteHeight = <?=round($scaleFactorY*576)?>
|
||
|
|
||
|
[TextureRedefine] # gamepad
|
||
|
width = 854
|
||
|
height = 480
|
||
|
overwriteWidth = <?=round($scaleFactorX*1280)?>
|
||
|
overwriteHeight = <?=round($scaleFactorY*720)?>
|
||
|
|
||
|
[TextureRedefine] # zoom blur
|
||
|
width = 512
|
||
|
height = 288
|
||
|
overwriteWidth = <?=round($scaleFactorX*512)?>
|
||
|
overwriteHeight = <?=round($scaleFactorY*288)?>
|
||
|
|
||
|
[TextureRedefine] # sub zoom blur
|
||
|
width = 448
|
||
|
height = 252
|
||
|
overwriteWidth = <?=round($scaleFactorX*448)?>
|
||
|
overwriteHeight = <?=round($scaleFactorY*252)?>
|
||
|
|
||
|
[TextureRedefine] # player icon - GL_SRGB8_ALPHA8
|
||
|
width = 128
|
||
|
height = 128
|
||
|
formats = 0x41A
|
||
|
#overwriteWidth = 384
|
||
|
#overwriteHeight = 384 #Need to confirm on next Cemu version
|
||
|
|
||
|
[TextureRedefine] # player icon - GL_RGBA8
|
||
|
width = 256
|
||
|
height = 256
|
||
|
formats = 0x01a
|
||
|
#overwriteWidth = 768
|
||
|
#overwriteHeight = 768 #Need to confirm on next Cemu version
|
||
|
|
||
|
[TextureRedefine] # multiplayer
|
||
|
width = 848
|
||
|
height = 480
|
||
|
overwriteWidth = <?=round($scaleFactorX*1280)?>
|
||
|
overwriteHeight = <?=round($scaleFactorY*720)?>
|
||
|
|
||
|
[TextureRedefine] # half-res alpha (multiplayer)
|
||
|
width = 424
|
||
|
height = 240
|
||
|
overwriteWidth = <?=round($scaleFactorX*640)?>
|
||
|
overwriteHeight = <?=round($scaleFactorY*360)?>
|
||
|
|
||
|
[TextureRedefine] # a bloom mip
|
||
|
width = 160
|
||
|
height = 90
|
||
|
formats = 0x816
|
||
|
overwriteWidth = <?=round($scaleFactorX*160)?>
|
||
|
overwriteHeight = <?=round($scaleFactorY*90)?>
|