local Lighting = game:GetService("Lighting")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Camera = workspace.CurrentCamera
local RTX = {
Softness = 0.85,
WarmGlow = 0.4,
AmbientSoftness = 0.7
}
local function setupSoftLighting()
Lighting.Brightness = 1.6
Lighting.GlobalShadows = true
Lighting.ShadowSoftness = 0.6
Lighting.ClockTime = 17.2
Lighting.GeographicLatitude = 35.5
Lighting.ExposureCompensation = 0.8
Lighting.Ambient = Color3.fromRGB(25, 22, 28)
Lighting.OutdoorAmbient = Color3.fromRGB(40, 36, 42)
Lighting.ColorShift_Top = Color3.fromRGB(255, 210, 140)
Lighting.ColorShift_Bottom = Color3.fromRGB(255, 175, 110)
Lighting.EnvironmentDiffuseScale = 0.8
Lighting.EnvironmentSpecularScale = 2.2
end
local function createSoftBloom()
local bloom = Instance.new("BloomEffect")
bloom.Size = 16
bloom.Threshold = 0.4
bloom.Intensity = 0.25
bloom.Parent = Lighting
return bloom
end
local function createSoftColorCorrection()
local cc = Instance.new("ColorCorrectionEffect")
cc.Saturation = 1.12
cc.Contrast = 1.05
cc.TintColor = Color3.fromRGB(255, 220, 165)
cc.Brightness = 0.03
cc.Parent = Lighting
return cc
end
local function createSoftSunRays()
local sunRays = Instance.new("SunRaysEffect")
sunRays.Intensity = 0.28
sunRays.Spread = 1.6
sunRays.Parent = Lighting
return sunRays
end
local function createSoftDepthOfField()
local dof = Instance.new("DepthOfFieldEffect")
dof.FarIntensity = 0.1
dof.FocusDistance = 55
dof.InFocusRadius = 40
dof.NearIntensity = 0.03
dof.Parent = Lighting
return dof
end
local function setupSoftAtmosphere()
local atmosphere = Instance.new("Atmosphere")
atmosphere.Density = 0.32
atmosphere.Offset = 0.2
atmosphere.Color = Color3.fromRGB(255, 185, 115)
atmosphere.Decay = Color3.fromRGB(240, 155, 90)
atmosphere.Glare = 0.9
atmosphere.Haze = 0.4
atmosphere.Parent = Lighting
return atmosphere
end
local function createGentleReflectionProbes()
local probes = {}
local shinyColors = {
Color3.fromRGB(255, 200, 130),
Color3.fromRGB(250, 195, 125),
Color3.fromRGB(255, 205, 135),
Color3.fromRGB(248, 192, 122)
}
for i = 1, 6 do
local probe = Instance.new("ReflectionProbe")
probe.Size = Vector3.new(150, 150, 150)
probe.CFrame = CFrame.new(0, 35, 0) * CFrame.Angles(0, math.rad(i * 60), 0)
probe.Resolution = Enum.ReflectionProbeResolution.Resolution512
probe.FresnelStrength = 0.85
probe.Brightness = 1.3
probe.TintColor = shinyColors[(i % 4) + 1]
probe.Parent = workspace
table.insert(probes, probe)
end
return probes
end
local function setupSoftSky()
local sky = Lighting.Sky
if not sky then
sky = Instance.new("Sky")
sky.Parent = Lighting
end
sky.SkyboxBk = "rbxassetid://16123478901"
sky.SkyboxDn = "rbxassetid://16123481234"
sky.SkyboxFt = "rbxassetid://16123483456"
sky.SkyboxLf = "rbxassetid://16123485678"
sky.SkyboxRt = "rbxassetid://16123487890"
sky.SkyboxUp = "rbxassetid://16123489123"
sky.CelestialBodiesShown = true
sky.StarCount = 4000
sky.SunAngularSize = 35
sky.MoonAngularSize = 20
end
local function createSoftBlur()
local blur = Instance.new("BlurEffect")
blur.Size = 1
blur.Parent = Lighting
return blur
end
local effects = {}
local probes = {}
local function enableRTX()
for _, effect in pairs(effects) do
if effect and effect.Parent then
effect:Destroy()
end
end
for _, probe in pairs(probes) do
if probe and probe.Parent then
probe:Destroy()
end
end
effects = {}
setupSoftLighting()
setupSoftSky()
table.insert(effects, createSoftBloom())
table.insert(effects, createSoftColorCorrection())
table.insert(effects, createSoftSunRays())
table.insert(effects, createSoftDepthOfField())
table.insert(effects, setupSoftAtmosphere())
table.insert(effects, createSoftBlur())
probes = createGentleReflectionProbes()
for _, probe in pairs(probes) do
table.insert(effects, probe)
end
end
local function init()
pcall(function()
enableRTX()
local timeDirection = 1
RunService.RenderStepped:Connect(function(deltaTime)
if Lighting.ClockTime > 17.6 then
timeDirection = -0.003
elseif Lighting.ClockTime < 16.8 then
timeDirection = 0.003
end
Lighting.ClockTime = Lighting.ClockTime + timeDirection * deltaTime
end)
end)
end
init()
Comments
No comments yet
Be the first to share your thoughts!