Make light source resolution editable

Makes light source resolution editable
but also add conditional (Recommended) presets to preserve what resolutions had different hard coded light resolutions
This commit is contained in:
intra0 2024-12-14 13:47:10 -06:00 committed by GitHub
parent 2f2efcc346
commit 2a4ae77ea4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,6 +12,7 @@ $height = 1080
$gameWidth = 1920 $gameWidth = 1920
$gameHeight = 1080 $gameHeight = 1080
$lightSource = 1.0 $lightSource = 1.0
$lightSourceRecommened = 1.0
$scaleShader = 1.0 $scaleShader = 1.0
$aspectRatio = (16.0/9.0) $aspectRatio = (16.0/9.0)
$shadowRes = 1 $shadowRes = 1
@ -22,9 +23,7 @@ category = Resolution
name = 320x180 name = 320x180
$width = 320 $width = 320
$height = 180 $height = 180
$gameWidth = 1920 $lightSourceRecommened = 1.0
$gameHeight = 1080
$lightSource = 1.0
$scaleShader = 1.0 $scaleShader = 1.0
$aspectRatio = (16.0/9.0) $aspectRatio = (16.0/9.0)
@ -33,9 +32,7 @@ category = Resolution
name = 640x360 name = 640x360
$width = 640 $width = 640
$height = 360 $height = 360
$gameWidth = 1920 $lightSourceRecommened = 1.0
$gameHeight = 1080
$lightSource = 1.0
$scaleShader = 1.0 $scaleShader = 1.0
$aspectRatio = (16.0/9.0) $aspectRatio = (16.0/9.0)
@ -44,9 +41,7 @@ category = Resolution
name = 960x540 name = 960x540
$width = 960 $width = 960
$height = 540 $height = 540
$gameWidth = 1920 $lightSourceRecommened = 1.0
$gameHeight = 1080
$lightSource = 1.0
$scaleShader = 1.0 $scaleShader = 1.0
$aspectRatio = (16.0/9.0) $aspectRatio = (16.0/9.0)
@ -55,9 +50,7 @@ category = Resolution
name = 1280x720 name = 1280x720
$width = 1280 $width = 1280
$height = 720 $height = 720
$gameWidth = 1920 $lightSourceRecommened = 1.0
$gameHeight = 1080
$lightSource = 1.0
$scaleShader = 1.0 $scaleShader = 1.0
$aspectRatio = (16.0/9.0) $aspectRatio = (16.0/9.0)
@ -66,9 +59,7 @@ category = Resolution
name = 1600x900 name = 1600x900
$width = 1600 $width = 1600
$height = 900 $height = 900
$gameWidth = 1920 $lightSourceRecommened = 1.0
$gameHeight = 1080
$lightSource = 1.0
$scaleShader = 1.0 $scaleShader = 1.0
$aspectRatio = (16.0/9.0) $aspectRatio = (16.0/9.0)
@ -82,9 +73,7 @@ category = Resolution
name = 2560x1440 name = 2560x1440
$width = 2560 $width = 2560
$height = 1440 $height = 1440
$gameWidth = 1920 $lightSourceRecommened = 1.0
$gameHeight = 1080
$lightSource = 1.0
$scaleShader = 1.0 $scaleShader = 1.0
$aspectRatio = (16.0/9.0) $aspectRatio = (16.0/9.0)
@ -93,9 +82,7 @@ category = Resolution
name = 2732x1536 name = 2732x1536
$width = 2732 $width = 2732
$height = 1536 $height = 1536
$gameWidth = 1920 $lightSourceRecommened = 1.0
$gameHeight = 1080
$lightSource = 1.0
$scaleShader = 1.0 $scaleShader = 1.0
$aspectRatio = (16.0/9.0) $aspectRatio = (16.0/9.0)
@ -104,9 +91,7 @@ category = Resolution
name = 3200x1800 name = 3200x1800
$width = 3200 $width = 3200
$height = 1800 $height = 1800
$gameWidth = 1920 $lightSourceRecommened = 1.0
$gameHeight = 1080
$lightSource = 1.0
$scaleShader = 1.0 $scaleShader = 1.0
$aspectRatio = (16.0/9.0) $aspectRatio = (16.0/9.0)
@ -115,9 +100,7 @@ category = Resolution
name = 3840x2160 name = 3840x2160
$width = 3840 $width = 3840
$height = 2160 $height = 2160
$gameWidth = 1920 $lightSourceRecommened = 1.0
$gameHeight = 1080
$lightSource = 1.0
$scaleShader = 1.0 $scaleShader = 1.0
$aspectRatio = (16.0/9.0) $aspectRatio = (16.0/9.0)
@ -126,9 +109,7 @@ category = Resolution
name = 5120x2880 name = 5120x2880
$width = 5120 $width = 5120
$height = 2880 $height = 2880
$gameWidth = 1920 $lightSourceRecommened = 1.0
$gameHeight = 1080
$lightSource = 1.0
$scaleShader = 1.0 $scaleShader = 1.0
$aspectRatio = (16.0/9.0) $aspectRatio = (16.0/9.0)
@ -137,9 +118,7 @@ category = Resolution
name = 7680x4320 name = 7680x4320
$width = 7680 $width = 7680
$height = 4320 $height = 4320
$gameWidth = 1920 $lightSourceRecommened = 1.0
$gameHeight = 1080
$lightSource = 1.0
$scaleShader = 1.0 $scaleShader = 1.0
$aspectRatio = (16.0/9.0) $aspectRatio = (16.0/9.0)
@ -154,9 +133,7 @@ category = Resolution
name = ---- Ultra wide 21:9 ---- name = ---- Ultra wide 21:9 ----
$width = 2560 $width = 2560
$height = 1080 $height = 1080
$gameWidth= 1920 $lightSourceRecommened = 2.0
$gameHeight= 1080
$lightSource = 2.0
$scaleShader = (1920.0/2560.0) $scaleShader = (1920.0/2560.0)
$aspectRatio = (64.0/27.0) #LG $aspectRatio = (64.0/27.0) #LG
@ -165,9 +142,7 @@ category = Resolution
name = 2560x1080 (21:9 HD) name = 2560x1080 (21:9 HD)
$width = 2560 $width = 2560
$height = 1080 $height = 1080
$gameWidth= 1920 $lightSourceRecommened = 2.0
$gameHeight= 1080
$lightSource = 2.0
$scaleShader = (1920.0/2560.0) $scaleShader = (1920.0/2560.0)
$aspectRatio = (64.0/27.0) #LG $aspectRatio = (64.0/27.0) #LG
@ -176,9 +151,7 @@ category = Resolution
name = 3440x1440 (21:9) name = 3440x1440 (21:9)
$width = 3440 $width = 3440
$height = 1440 $height = 1440
$gameWidth= 1920 $lightSourceRecommened = 1.5
$gameHeight= 1080
$lightSource = 1.5
$scaleShader = (2560.0/3440.0) $scaleShader = (2560.0/3440.0)
$aspectRatio = (43.0/18.0) $aspectRatio = (43.0/18.0)
@ -187,9 +160,7 @@ category = Resolution
name = 3840x1600 (21:9) name = 3840x1600 (21:9)
$width = 3840 $width = 3840
$height = 1600 $height = 1600
$gameWidth= 1920 $lightSourceRecommened = 1.35
$gameHeight= 1080
$lightSource = 1.35
$scaleShader = (2844.445/3840.0) $scaleShader = (2844.445/3840.0)
$aspectRatio = (12.0/5.0) $aspectRatio = (12.0/5.0)
@ -198,9 +169,7 @@ category = Resolution
name = 5160x2160 (4k 21:9) name = 5160x2160 (4k 21:9)
$width = 5160 $width = 5160
$height = 2160 $height = 2160
$gameWidth= 1920 $lightSourceRecommened = 1.0
$gameHeight= 1080
$lightSource = 1.0
$scaleShader = (3840.0/5160.0) $scaleShader = (3840.0/5160.0)
$aspectRatio = (64.0/27.0) #LG $aspectRatio = (64.0/27.0) #LG
@ -209,9 +178,7 @@ category = Resolution
name = ---- Superwide 32:9 ---- name = ---- Superwide 32:9 ----
$width = 5120 $width = 5120
$height = 1440 $height = 1440
$gameWidth= 1920 $lightSourceRecommened = 1.5
$gameHeight= 1080
$lightSource = 1.5
$scaleShader = (2560.0/5120.0) $scaleShader = (2560.0/5120.0)
$aspectRatio = (96.0/27.0) $aspectRatio = (96.0/27.0)
@ -220,9 +187,7 @@ category = Resolution
name = 5120x1440 (32:9) name = 5120x1440 (32:9)
$width = 5120 $width = 5120
$height = 1440 $height = 1440
$gameWidth= 1920 $lightSourceRecommened = 1.5
$gameHeight= 1080
$lightSource = 1.5
$scaleShader = (2560.0/5120.0) $scaleShader = (2560.0/5120.0)
$aspectRatio = (96.0/27.0) $aspectRatio = (96.0/27.0)
@ -231,78 +196,85 @@ category = Resolution
name = 7680x2160 (4k 32:9) name = 7680x2160 (4k 32:9)
$width = 7680 $width = 7680
$height = 2160 $height = 2160
$gameWidth= 1920 $lightSourceRecommened = 1.0
$gameHeight= 1080
$lightSource = 1.0
$scaleShader = (3840.0/7680.0) $scaleShader = (3840.0/7680.0)
$aspectRatio = (96.0/27.0) $aspectRatio = (96.0/27.0)
[Preset] [Preset]
category = Resolution category = Resolution
name = ---- Custom resolutions ---- name = ---- Custom resolutions ----
$width = 1920
$height = 1080
$gameWidth = 1920
$gameHeight = 1080
$lightSource = 2.0
$scaleShader = 1.0
$aspectRatio = (16.0/9.0)
[Preset] [Preset]
category = Resolution category = Resolution
name = 1920x1080 AO fix - Light res x2 name = 1920x2160 vert x2 SSAA
$width = 1920
$height = 1080
$gameWidth = 1920
$gameHeight = 1080
$lightSource = 2.0
$scaleShader = 1.0
$aspectRatio = (16.0/9.0)
[Preset]
category = Resolution
name = 2560x1440 AO fix
$width = 2560
$height = 1440
$gameWidth = 1920
$gameHeight = 1080
$lightSource = 1.5
$scaleShader = 1.0 #(1088.0/1440.0)
$aspectRatio = (16.0/9.0)
[Preset]
category = Resolution
name = 3840x2160 AO fix - light res x2
$width = 3840
$height = 2160
$gameWidth = 1920
$gameHeight = 1080
$lightSource = 2.0
$scaleShader = 1.0
$aspectRatio = (16.0/9.0)
[Preset]
category = Resolution
name = 1920x2160 vert x2 SSAA - light res x2
$width = 1920 $width = 1920
$height = 2160 $height = 2160
$gameWidth = 1920 $lightSourceRecommened = 2.0
$gameHeight = 1080
$lightSource = 2.0
$scaleShader = 1.0 $scaleShader = 1.0
$aspectRatio = (16.0/9.0) $aspectRatio = (16.0/9.0)
[Preset] [Preset]
category = Resolution category = Resolution
name = 3840x4320 vert x2 SSAA - light res x2 name = 3840x4320 vert x2 SSAA
$width = 3840 $width = 3840
$height = 4320 # x2 $height = 4320 # x2
$gameWidth = 1920 $lightSourceRecommened = 2.0
$gameHeight = 1080
$lightSource = 2.0
$scaleShader = 1.0 $scaleShader = 1.0
$aspectRatio = (16.0/9.0) $aspectRatio = (16.0/9.0)
# Light Resolution
[Preset]
name = 100% (Default)
category = Light Resolution
condition = $lightSourceRecommened != 1.0
[Preset]
name = 100% (Default) (Recommended)
category = Light Resolution
condition = $lightSourceRecommened == 1.0
default = 1
[Preset]
name = 135%
category = Light Resolution
condition = $lightSourceRecommened != 1.35
$lightSource = 1.35
[Preset]
name = 135% (Recommended)
category = Light Resolution
condition = $lightSourceRecommened == 1.35
$lightSource = 1.35
default = 1
[Preset]
name = 150%
category = Light Resolution
condition = $lightSourceRecommened != 1.50
$lightSource = 1.50
[Preset]
name = 150% (Recommended)
category = Light Resolution
condition = $lightSourceRecommened == 1.50
$lightSource = 1.50
default = 1
[Preset]
name = 200%
category = Light Resolution
condition = $lightSourceRecommened != 2.0
$lightSource = 2.0
[Preset]
name = 200% (Recommended)
category = Light Resolution
condition = $lightSourceRecommened == 2.0
$lightSource = 2.0
default = 1
# Shadows Resolution
[Preset] [Preset]
category = Shadow Quality category = Shadow Quality
@ -329,6 +301,8 @@ category = Shadow Quality
name = Extreme (400%, Unstable) name = Extreme (400%, Unstable)
$shadowRes = 4 $shadowRes = 4
# Anisotropic Filtering
[Preset] [Preset]
category = Anisotropic Filtering category = Anisotropic Filtering
name = 1x (Default) name = 1x (Default)