Parallax refactors (#7654)
This commit is contained in:
26
Resources/Prototypes/Parallaxes/default.yml
Normal file
26
Resources/Prototypes/Parallaxes/default.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
- type: parallax
|
||||
id: default
|
||||
layers:
|
||||
- texture:
|
||||
!type:GeneratedParallaxTextureSource
|
||||
id: "hq_wizard_clouds"
|
||||
configPath: "/Prototypes/Parallaxes/parallax_config_clouds.toml"
|
||||
slowness: 0.5
|
||||
- texture:
|
||||
!type:GeneratedParallaxTextureSource
|
||||
id: "hq_wizard_stars_dim"
|
||||
configPath: "/Prototypes/Parallaxes/parallax_config_stars_dim.toml"
|
||||
slowness: 0.375
|
||||
- texture:
|
||||
!type:GeneratedParallaxTextureSource
|
||||
id: "hq_wizard_stars"
|
||||
configPath: "/Prototypes/Parallaxes/parallax_config_stars.toml"
|
||||
slowness: 0.25
|
||||
layersLQ:
|
||||
- texture:
|
||||
!type:GeneratedParallaxTextureSource
|
||||
id: ""
|
||||
configPath: "/Prototypes/Parallaxes/parallax_config.toml"
|
||||
slowness: 0.5
|
||||
layersLQUseHQ: false
|
||||
|
||||
94
Resources/Prototypes/Parallaxes/parallax_config.toml
Normal file
94
Resources/Prototypes/Parallaxes/parallax_config.toml
Normal file
@@ -0,0 +1,94 @@
|
||||
# Clear to black.
|
||||
[[layers]]
|
||||
type = "clear"
|
||||
color = "#000000"
|
||||
|
||||
# Background nebula detail.
|
||||
[[layers]]
|
||||
type = "noise"
|
||||
seed = 7832
|
||||
innercolor = "#5d1fe1"
|
||||
outercolor = "#230070"
|
||||
noise_type = "ridged"
|
||||
frequency = "4"
|
||||
octaves = 8
|
||||
power = "0.25"
|
||||
threshold = "0.40"
|
||||
|
||||
# Mask background nebula.
|
||||
[[layers]]
|
||||
type = "noise"
|
||||
noise_type = "fbm"
|
||||
innercolor = "#000000"
|
||||
outercolor = "#000000"
|
||||
destfactor = "SrcAlpha"
|
||||
seed = 3551
|
||||
octaves = 4
|
||||
power = "0.35"
|
||||
lacunarity = "1.5"
|
||||
frequency = "3"
|
||||
threshold = "0.0"
|
||||
|
||||
# Dim background nebula stars.
|
||||
[[layers]]
|
||||
type = "points"
|
||||
seed = 3909
|
||||
closecolor = "#4B5072"
|
||||
count = 1500
|
||||
mask = true
|
||||
masknoise_type = "fbm"
|
||||
maskoctaves = 4
|
||||
maskpersistence = "0.5"
|
||||
maskpower = "0.35"
|
||||
masklacunarity = "1.5"
|
||||
maskfrequency = "3"
|
||||
maskthreshold = "0.0"
|
||||
maskseed = 3551
|
||||
|
||||
# Bright background nebula stars.
|
||||
[[layers]]
|
||||
type = "points"
|
||||
closecolor = "#7E86BF"
|
||||
count = 1000
|
||||
seed = 3472
|
||||
mask = true
|
||||
masknoise_type = "fbm"
|
||||
maskoctaves = 4
|
||||
maskpersistence = "0.5"
|
||||
maskpower = "0.35"
|
||||
masklacunarity = "1.5"
|
||||
maskfrequency = "3"
|
||||
maskthreshold = "0.37"
|
||||
maskseed = 3551
|
||||
|
||||
# Bright background nebula stars, dim edge.
|
||||
[[layers]]
|
||||
type = "points"
|
||||
closecolor = "#3D415C"
|
||||
pointsize = 2
|
||||
count = 1000
|
||||
seed = 3472
|
||||
mask = true
|
||||
masknoise_type = "fbm"
|
||||
maskoctaves = 4
|
||||
maskpersistence = "0.5"
|
||||
maskpower = "0.35"
|
||||
masklacunarity = "1.5"
|
||||
maskfrequency = "3"
|
||||
maskthreshold = "0.37"
|
||||
maskseed = 3551
|
||||
|
||||
# Couple of odd bright yellow-ish stars.
|
||||
[[layers]]
|
||||
type = "points"
|
||||
closecolor = "#FFD363"
|
||||
count = 30
|
||||
seed = 6454
|
||||
|
||||
# And their dim edge.
|
||||
[[layers]]
|
||||
type = "points"
|
||||
closecolor = "#43371A"
|
||||
pointsize = 2
|
||||
count = 30
|
||||
seed = 6454
|
||||
31
Resources/Prototypes/Parallaxes/parallax_config_clouds.toml
Normal file
31
Resources/Prototypes/Parallaxes/parallax_config_clouds.toml
Normal file
@@ -0,0 +1,31 @@
|
||||
# Clear to black.
|
||||
[[layers]]
|
||||
type = "clear"
|
||||
color = "#000000"
|
||||
|
||||
# Background nebula detail.
|
||||
[[layers]]
|
||||
type = "noise"
|
||||
seed = 7832
|
||||
innercolor = "#5d1fe1"
|
||||
outercolor = "#230070"
|
||||
noise_type = "ridged"
|
||||
frequency = "4"
|
||||
octaves = 8
|
||||
power = "0.25"
|
||||
threshold = "0.40"
|
||||
|
||||
# Mask background nebula.
|
||||
[[layers]]
|
||||
type = "noise"
|
||||
noise_type = "fbm"
|
||||
innercolor = "#000000"
|
||||
outercolor = "#000000"
|
||||
destfactor = "SrcAlpha"
|
||||
seed = 3551
|
||||
octaves = 4
|
||||
power = "0.35"
|
||||
lacunarity = "1.5"
|
||||
frequency = "3"
|
||||
threshold = "0.0"
|
||||
|
||||
57
Resources/Prototypes/Parallaxes/parallax_config_stars.toml
Normal file
57
Resources/Prototypes/Parallaxes/parallax_config_stars.toml
Normal file
@@ -0,0 +1,57 @@
|
||||
# Clear to black.
|
||||
[[layers]]
|
||||
type = "clear"
|
||||
color = "#000000"
|
||||
|
||||
# Bright background nebula stars.
|
||||
[[layers]]
|
||||
type = "points"
|
||||
closecolor = "#7E86BF"
|
||||
count = 1000
|
||||
seed = 3472
|
||||
mask = true
|
||||
masknoise_type = "fbm"
|
||||
maskoctaves = 4
|
||||
maskpersistence = "0.5"
|
||||
maskpower = "0.35"
|
||||
masklacunarity = "1.5"
|
||||
maskfrequency = "3"
|
||||
maskthreshold = "0.37"
|
||||
maskseed = 3551
|
||||
|
||||
# Bright background nebula stars, dim edge.
|
||||
[[layers]]
|
||||
type = "points"
|
||||
closecolor = "#3D415C"
|
||||
pointsize = 2
|
||||
count = 1000
|
||||
seed = 3472
|
||||
mask = true
|
||||
masknoise_type = "fbm"
|
||||
maskoctaves = 4
|
||||
maskpersistence = "0.5"
|
||||
maskpower = "0.35"
|
||||
masklacunarity = "1.5"
|
||||
maskfrequency = "3"
|
||||
maskthreshold = "0.37"
|
||||
maskseed = 3551
|
||||
|
||||
# Couple of odd bright yellow-ish stars.
|
||||
[[layers]]
|
||||
type = "points"
|
||||
closecolor = "#FFD363"
|
||||
count = 30
|
||||
seed = 6454
|
||||
|
||||
# And their dim edge.
|
||||
[[layers]]
|
||||
type = "points"
|
||||
closecolor = "#43371A"
|
||||
pointsize = 2
|
||||
count = 30
|
||||
seed = 6454
|
||||
|
||||
# Colour-to-alpha.
|
||||
[[layers]]
|
||||
type = "toalpha"
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
# Clear to black.
|
||||
[[layers]]
|
||||
type = "clear"
|
||||
color = "#000000"
|
||||
|
||||
# Dim background nebula stars.
|
||||
[[layers]]
|
||||
type = "points"
|
||||
seed = 3909
|
||||
closecolor = "#4B5072"
|
||||
count = 1500
|
||||
mask = true
|
||||
masknoise_type = "fbm"
|
||||
maskoctaves = 4
|
||||
maskpersistence = "0.5"
|
||||
maskpower = "0.35"
|
||||
masklacunarity = "1.5"
|
||||
maskfrequency = "3"
|
||||
maskthreshold = "0.0"
|
||||
maskseed = 3551
|
||||
|
||||
# Colour-to-alpha.
|
||||
[[layers]]
|
||||
type = "toalpha"
|
||||
|
||||
54
Resources/Prototypes/Parallaxes/test.yml
Normal file
54
Resources/Prototypes/Parallaxes/test.yml
Normal file
@@ -0,0 +1,54 @@
|
||||
# looks like the AME became the universe again.
|
||||
# someone call that guy who went and became the universe last time.
|
||||
# using Content.Client.Parallax.Managers; IoCManager.Resolve<IParallaxManager>().ParallaxName = "test";
|
||||
|
||||
- type: parallax
|
||||
id: test
|
||||
layers:
|
||||
- texture:
|
||||
!type:ImageParallaxTextureSource
|
||||
path: "/Textures/Decals/dirty.rsi/damaged.png"
|
||||
slowness: 0.5
|
||||
scale: "2, 2"
|
||||
- texture:
|
||||
!type:ImageParallaxTextureSource
|
||||
path: "/Textures/Decals/dirty.rsi/rust.png"
|
||||
slowness: 3.0
|
||||
scale: "3, 3"
|
||||
- texture:
|
||||
!type:ImageParallaxTextureSource
|
||||
path: "/Textures/Objects/Power/AME/ame_part.rsi/box.png"
|
||||
slowness: 0.995
|
||||
tiled: false
|
||||
controlHomePosition: "-128, -128"
|
||||
worldHomePosition: "0, 0"
|
||||
worldAdjustPosition: "4, 4"
|
||||
scale: "8, 8"
|
||||
- texture:
|
||||
!type:ImageParallaxTextureSource
|
||||
path: "/Textures/Objects/Power/AME/ame_jar.rsi/jar.png"
|
||||
slowness: 0.0
|
||||
tiled: false
|
||||
scale: "2, 2"
|
||||
- texture:
|
||||
!type:ImageParallaxTextureSource
|
||||
path: "/Textures/Objects/Power/AME/ame_jar.rsi/jar.png"
|
||||
slowness: 0.125
|
||||
tiled: false
|
||||
scale: "1, 1"
|
||||
- texture:
|
||||
!type:ImageParallaxTextureSource
|
||||
path: "/Textures/Objects/Power/AME/ame_part.rsi/box.png"
|
||||
slowness: 0.0
|
||||
tiled: false
|
||||
controlHomePosition: "0, 32"
|
||||
worldHomePosition: "0, 1"
|
||||
scale: "2, 2"
|
||||
layersLQ:
|
||||
- texture:
|
||||
!type:ImageParallaxTextureSource
|
||||
path: "/Textures/Decals/dirty.rsi/rust.png"
|
||||
slowness: 3.0
|
||||
scale: "3, 3"
|
||||
layersLQUseHQ: false
|
||||
|
||||
Reference in New Issue
Block a user