This commit is contained in:
2024-04-08 18:17:29 -04:00
parent 42db037fc5
commit 53e383cbb1
2 changed files with 13 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ export type Effects = {
}
local Lighting = game:GetService("Lighting")
local mat_fullbright = game:GetService("RunService"):IsStudio()
local mat_fullbright = false
local Lighting_PropsTree: LightingProps = {
["Ambient"] = mat_fullbright and Color3.new(1,1,1) or Color3.fromRGB(40,40,40),
@@ -30,7 +30,7 @@ local Lighting_PropsTree: LightingProps = {
["FogStart"] = 10_0000,
}
local function Skybox(): (Sky, Atmosphere)
local function Skybox(): (Sky, Atmosphere, BloomEffect)
local SkyBox = Instance.new("Sky") :: Sky
SkyBox.SkyboxBk = "rbxassetid://48020371"
SkyBox.SkyboxDn = "rbxassetid://48020144"
@@ -40,7 +40,7 @@ local function Skybox(): (Sky, Atmosphere)
SkyBox.SkyboxUp = "rbxassetid://48020383"
SkyBox.MoonTextureId = ""
SkyBox.StarCount = 500
local Atmosphere = Instance.new("Atmosphere") :: Atmosphere
Atmosphere.Density = .429
Atmosphere.Offset = 0
@@ -49,7 +49,12 @@ local function Skybox(): (Sky, Atmosphere)
Atmosphere.Glare = .1
Atmosphere.Haze = 1.5
return SkyBox, Atmosphere
local Bloom = Instance.new("BloomEffect") :: BloomEffect
Bloom.Intensity = .75
Bloom.Size = 35
Bloom.Threshold = 1.5
return SkyBox, Atmosphere, Bloom
end
return function(): Effects
@@ -68,9 +73,10 @@ return function(): Effects
end
end
local Sky, Atmosphere = Skybox()
local Sky, Atmosphere, Bloom = Skybox()
Sky.Parent = Lighting
Atmosphere.Parent = Lighting
Bloom.Parent = Lighting
return {
ColorCorrection = ColorCorrection