[Definition]
titleIds = 000500001019C800,000500001019E600,000500001019E500
name = Resolution
path = "The Legend of Zelda: Twilight Princess HD/Graphics/Resolution"
description = Changes the resolution of the game.
version = 3

[Preset]
name = 1920x1080 (Default)
$width = 1920
$height = 1080
$gameWidth = 1920
$gameHeight = 1080
$dither = 0.01
$scaleShader = 1.0
$scaleBlur = 0.05
$internalRes = 1
// Performance


[Preset]
name = 640x360
$width = 640
$height = 360
$gameWidth = 1920
$gameHeight = 1080
$dither = 0.01
$scaleShader = 1.0
$scaleBlur = 0.05
$internalRes = 1

[Preset]
name = 854x480
$width = 854
$height = 480
$gameWidth = 1920
$gameHeight = 1080
$dither = 0.01
$scaleShader = 1.0
$scaleBlur = 0.05
$internalRes = 1

[Preset]
name = 960x540
$width = 960
$height = 540
$gameWidth = 1920
$gameHeight = 1080
$dither = 0.01
$scaleShader = 1.0
$scaleBlur = 0.05
$internalRes = 1

[Preset]
name = 1280x720
$width = 1280
$height = 720
$gameWidth = 1920
$gameHeight = 1080
$dither = 0.01
$scaleShader = 1.0
$scaleBlur = 0.05
$internalRes = 1

// Quality

[Preset]
name = 1600x900
$width = 1600
$height = 900
$gameWidth = 1920
$gameHeight = 1080
$dither = 0.01
$scaleShader = 1.0
$scaleBlur = 0.05
$internalRes = 1

[Preset]
name = 2560x1080 (21:9 HD)
$width = 2560
$height = 1080
$gameWidth = 1920
$gameHeight = 1080
$dither = 0.1
$scaleShader = 1.0
$scaleBlur = 0.25
$internalRes = 1

[Preset]
name = 5760x1080 (48:9 HD)
$width = 2560
$height = 1080
$gameWidth = 1920
$gameHeight = 1080
$dither = 0.1
$scaleShader = 1.0
$scaleBlur = 0.25
$internalRes = 1

[Preset]
name = 2560x1440
$width = 2560
$height = 1440
$gameWidth = 1920
$gameHeight = 1080
$dither = 0.1
$scaleShader = 1.0
$scaleBlur = 0.25
$internalRes = 1

[Preset]
name = 3440x1440 (21:9)
$width = 3440
$height = 1440
$gameWidth = 1920
$gameHeight = 1080
$dither = 0.1
$scaleShader = 1.0
$scaleBlur = 0.25
$internalRes = 1

[Preset]
name = 7680x1440 (48:9)
$width = 7680
$height = 1440
$gameWidth = 1920
$gameHeight = 1080
$dither = 0.1
$scaleShader = 1.0
$scaleBlur = 0.25
$internalRes = 1

[Preset]
name = 2732x1536
$width = 2732
$height = 1536
$gameWidth = 1920
$gameHeight = 1080
$dither = 0.2
$scaleShader = 1.0
$scaleBlur = 0.25
$internalRes = 1

[Preset]
name = 3200x1800
$width = 3200
$height = 1800
$gameWidth = 1920
$gameHeight = 1080
$dither = 0.2
$scaleShader = 1.0
$scaleBlur = 0.5
$internalRes = 1

[Preset]
name = 3840x2160 (4k - Native x2) 
$width = 3840
$height = 2160
$gameWidth = 1920
$gameHeight = 1080
$dither = 0.2
$scaleShader = 1.0
$scaleBlur = 0.75
$internalRes = 1

[Preset]
name = 5120x2160 (4k 21:9)
$width = 5120
$height = 2160
$gameWidth = 1920
$gameHeight = 1080
$dither = 0.2
$scaleShader = 1.0
$scaleBlur = 0.5
$internalRes = 1

[Preset]
name = 5120x2160 (4k 48:9)
$width = 11520
$height = 2160
$gameWidth = 1920
$gameHeight = 1080
$dither = 0.2
$scaleShader = 1.0
$scaleBlur = 0.5
$internalRes = 1

[Preset]
name = 3840x2160 (4k - Native x2) 0.75 sub scaling
$width = 3840
$height = 2160
$gameWidth= 1920
$gameHeight= 1080
$internalRes = 0.75
$dither = 0.2
$scaleShader = 1.0
$scaleBlur = 0.5


[Preset]
name = 5120x2880
$width = 5120
$height = 2880
$gameWidth = 1920
$gameHeight = 1080
$dither = 0.2
$scaleShader = 1.0
$scaleBlur = 0.5
$internalRes = 1

// Enthusiast

[Preset]
name = 7680x4320
$width = 7680
$height = 4320
$gameWidth = 1920
$gameHeight = 1080
$dither = 0.25
$scaleShader = 1.0
$scaleBlur = 0.5
$internalRes = 1

#Fog banding
[TextureRedefine]
width = 1920
height = 1088
formats =  0x01a
overwriteFormat = 0x01f

[TextureRedefine]
width = 1920
height = 1080
formats =  0x01a
overwriteFormat = 0x01f

[TextureRedefine]
width = 960
height = 544
formats = 0x01a
overwriteFormat = 0x01f

[TextureRedefine]
width = 960
height = 540
formats =  0x01a
overwriteFormat = 0x01f

#[TextureRedefine] # bloom n cutscene
#width = 480
#height = 272
#formats = 0x01a
#overwriteFormat = 0x01f
#
#[TextureRedefine] # bloom n cutscene
#width = 480
#height = 270
#formats = 0x01a
#overwriteFormat = 0x01f

[TextureRedefine]
width = 1920
height = 1088
#formats = 0x011,0x01a
overwriteWidth = ($width/$gameWidth) * 1920
overwriteHeight = ($height/$gameHeight) * 1088

[TextureRedefine]
width = 1920
height = 1080
#formats = 
overwriteWidth = ($width/$gameWidth) * 1920
overwriteHeight  = ($height/$gameHeight) * 1080

[TextureRedefine]
width = 960
height = 544
#formats = 0x01a,0x011
overwriteWidth = ($width/$gameWidth) * (960*$internalRes) 
overwriteHeight = ($height/$gameHeight) * (544*$internalRes) 

[TextureRedefine]
width = 960
height = 540
#formats =  0x01a
overwriteWidth = ($width/$gameWidth) * (960*$internalRes) 
overwriteHeight  = ($height/$gameHeight) * (540*$internalRes) 

#[TextureRedefine]
#width = 864
#height = 480
##formats = 
#overwriteWidth = ($width/$gameWidth) * 864
#overwriteHeight = ($height/$gameHeight) * 480
#
#[TextureRedefine]
#width = 854
#height = 480
##formats = 
#overwriteWidth = ($width/$gameWidth) * 854
#overwriteHeight  = ($height/$gameHeight) * 480
#
#[TextureRedefine] #shadows horsie
#width = 768
#height = 768
#formatsExcluded = 
#overwriteWidth = ($width/$gameWidth) * 768
#overwriteHeight = ($height/$gameHeight) * 768
#
[TextureRedefine] # bloom n cutscene
width = 480
height = 272
#formats = 0x01a
overwriteWidth = ($width/$gameWidth) * (480*$internalRes)
overwriteHeight = ($height/$gameHeight) * (272*$internalRes)

[TextureRedefine] # bloom n cutscene
width = 480
height = 270
#formats = 0x01a
overwriteWidth = ($width/$gameWidth) * (480*$internalRes)
overwriteHeight = ($height/$gameHeight) * (270*$internalRes)
#
##[TextureRedefine] #Dont scale
##width = 448
##height = 384
###formats = 
##overwriteWidth = ($width/$gameWidth) * 448
##overwriteHeight  = ($height/$gameHeight) * 384
#
##[TextureRedefine] # Dont scale
##width = 435
##height = 381
###formats = 
##overwriteWidth = ($width/$gameWidth) * 435
##overwriteHeight  = ($height/$gameHeight) * 381
#
#[TextureRedefine] #Wolf shadows
#width = 384
#height = 384
####formatsExcluded = 
#overwriteWidth = ($width/$gameWidth) * 384
#overwriteHeight = ($height/$gameHeight) * 384
#
##[TextureRedefine] #Dont scale
##width = 320
##height = 288
###formats = 0x01a
##overwriteWidth = ($width/$gameWidth) * 320
##overwriteHeight = ($height/$gameHeight) * 288
#
##[TextureRedefine] #Dont scale
##width = 290
##height = 280
###formats = 
##overwriteWidth = ($width/$gameWidth) * 290
##overwriteHeight  = ($height/$gameHeight) * 280
#
##[TextureRedefine] # Dont scale
##width = 282
##height = 272
###formats = 
##overwriteWidth = ($width/$gameWidth) * 282
##overwriteHeight  = ($height/$gameHeight) * 272
