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
|
end
|
||||||
elseif Item:IsA("LuaSourceContainer") then --Cant allow scripts outside of the framework
|
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
|
--mini algIsAorthim to see if the script is part of the rhpid-framework character or not
|
||||||
|
--[[
|
||||||
local Model = Item:FindFirstAncestorOfClass("Model")
|
local Model = Item:FindFirstAncestorOfClass("Model")
|
||||||
|
|
||||||
if Model and not Players:GetPlayerFromCharacter(Model) then
|
if Model and not Players:GetPlayerFromCharacter(Model) then
|
||||||
@@ -104,6 +105,7 @@ function StudioEntities.indexAll(enabled: boolean)
|
|||||||
Item:Destroy()
|
Item:Destroy()
|
||||||
warn(`Script: "{Item.Name}" ({Item.ClassName}) was removed because it was outside of the rhpid-framework boundries,`, Item:GetFullName())
|
warn(`Script: "{Item.Name}" ({Item.ClassName}) was removed because it was outside of the rhpid-framework boundries,`, Item:GetFullName())
|
||||||
end
|
end
|
||||||
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
if table.find(CS:GetTags(Item), "ServerGuard_Physics") then
|
if table.find(CS:GetTags(Item), "ServerGuard_Physics") then
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ export type Effects = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
local Lighting = game:GetService("Lighting")
|
local Lighting = game:GetService("Lighting")
|
||||||
local mat_fullbright = game:GetService("RunService"):IsStudio()
|
local mat_fullbright = false
|
||||||
|
|
||||||
local Lighting_PropsTree: LightingProps = {
|
local Lighting_PropsTree: LightingProps = {
|
||||||
["Ambient"] = mat_fullbright and Color3.new(1,1,1) or Color3.fromRGB(40,40,40),
|
["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,
|
["FogStart"] = 10_0000,
|
||||||
}
|
}
|
||||||
|
|
||||||
local function Skybox(): (Sky, Atmosphere)
|
local function Skybox(): (Sky, Atmosphere, BloomEffect)
|
||||||
local SkyBox = Instance.new("Sky") :: Sky
|
local SkyBox = Instance.new("Sky") :: Sky
|
||||||
SkyBox.SkyboxBk = "rbxassetid://48020371"
|
SkyBox.SkyboxBk = "rbxassetid://48020371"
|
||||||
SkyBox.SkyboxDn = "rbxassetid://48020144"
|
SkyBox.SkyboxDn = "rbxassetid://48020144"
|
||||||
@@ -49,7 +49,12 @@ local function Skybox(): (Sky, Atmosphere)
|
|||||||
Atmosphere.Glare = .1
|
Atmosphere.Glare = .1
|
||||||
Atmosphere.Haze = 1.5
|
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
|
end
|
||||||
|
|
||||||
return function(): Effects
|
return function(): Effects
|
||||||
@@ -68,9 +73,10 @@ return function(): Effects
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local Sky, Atmosphere = Skybox()
|
local Sky, Atmosphere, Bloom = Skybox()
|
||||||
Sky.Parent = Lighting
|
Sky.Parent = Lighting
|
||||||
Atmosphere.Parent = Lighting
|
Atmosphere.Parent = Lighting
|
||||||
|
Bloom.Parent = Lighting
|
||||||
|
|
||||||
return {
|
return {
|
||||||
ColorCorrection = ColorCorrection
|
ColorCorrection = ColorCorrection
|
||||||
|
|||||||
Reference in New Issue
Block a user