mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-14 14:51:55 +00:00
bloom
This commit is contained in:
@@ -95,6 +95,7 @@ function StudioEntities.indexAll(enabled: boolean)
|
||||
end
|
||||
elseif Item:IsA("LuaSourceContainer") then --Cant allow scripts outside of the framework
|
||||
--mini algIsAorthim to see if the script is part of the rhpid-framework character or not
|
||||
--[[
|
||||
local Model = Item:FindFirstAncestorOfClass("Model")
|
||||
|
||||
if Model and not Players:GetPlayerFromCharacter(Model) then
|
||||
@@ -104,6 +105,7 @@ function StudioEntities.indexAll(enabled: boolean)
|
||||
Item:Destroy()
|
||||
warn(`Script: "{Item.Name}" ({Item.ClassName}) was removed because it was outside of the rhpid-framework boundries,`, Item:GetFullName())
|
||||
end
|
||||
]]
|
||||
end
|
||||
|
||||
if table.find(CS:GetTags(Item), "ServerGuard_Physics") then
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user