mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-18 03:21:54 +00:00
a
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user