This commit is contained in:
2024-04-30 01:52:19 -04:00
parent 62e90a9a17
commit 94a45c2bce
3 changed files with 29 additions and 26 deletions

View File

@@ -2,7 +2,7 @@
--!native
--!strict
type LightingProps = { [string]: Color3 | number | boolean | string }
type LightingProps = { [string]: Color3 | number | boolean | string | Enum.Technology }
export type Effects = {
ColorCorrection: ColorCorrectionEffect
@@ -28,19 +28,10 @@ local Lighting_PropsTree: LightingProps = {
["FogColor"] = Color3.new(0,0,0),
["FogEnd"] = 10_0000,
["FogStart"] = 10_0000,
["Technology"] = Enum.Technology.Future
}
local function Skybox(): (Sky, Atmosphere, BloomEffect)
local SkyBox = Instance.new("Sky") :: Sky
SkyBox.SkyboxBk = "rbxassetid://48020371"
SkyBox.SkyboxDn = "rbxassetid://48020144"
SkyBox.SkyboxFt = "rbxassetid://48020234"
SkyBox.SkyboxLf = "rbxassetid://48020211"
SkyBox.SkyboxRt = "rbxassetid://48020254"
SkyBox.SkyboxUp = "rbxassetid://48020383"
SkyBox.MoonTextureId = ""
SkyBox.StarCount = 500
local function Skybox(): (Atmosphere, BloomEffect)
local Atmosphere = Instance.new("Atmosphere") :: Atmosphere
Atmosphere.Density = .429
Atmosphere.Offset = 0
@@ -54,7 +45,7 @@ local function Skybox(): (Sky, Atmosphere, BloomEffect)
Bloom.Size = 35
Bloom.Threshold = 1.5
return SkyBox, Atmosphere, Bloom
return Atmosphere, Bloom
end
return function(): Effects
@@ -73,8 +64,7 @@ return function(): Effects
end
end
local Sky, Atmosphere, Bloom = Skybox()
Sky.Parent = Lighting
local Atmosphere, Bloom = Skybox()
Atmosphere.Parent = Lighting
Bloom.Parent = Lighting