Загрузка данных


local Lighting = game:GetService("Lighting")

--------------------------------------------------
-- SETTINGS
--------------------------------------------------

Lighting.GlobalShadows = true
Lighting.Technology = Enum.Technology.ShadowMap

Lighting.ShadowSoftness = 0.35

Lighting.EnvironmentDiffuseScale = 0.8
Lighting.EnvironmentSpecularScale = 0.7

--------------------------------------------------
-- ATMOSPHERE
--------------------------------------------------

local atmosphere = Lighting:FindFirstChild("RTXAtmosphere")

if not atmosphere then
	atmosphere = Instance.new("Atmosphere")
	atmosphere.Name = "RTXAtmosphere"
	atmosphere.Parent = Lighting
end

atmosphere.Density = 0.18
atmosphere.Offset = 0.1
atmosphere.Glare = 0.05
atmosphere.Haze = 1.2

--------------------------------------------------
-- COLOR CORRECTION
--------------------------------------------------

local colorCorrection =
	Lighting:FindFirstChild("RTXColorCorrection")

if not colorCorrection then
	colorCorrection = Instance.new("ColorCorrectionEffect")
	colorCorrection.Name = "RTXColorCorrection"
	colorCorrection.Parent = Lighting
end

colorCorrection.Brightness = 0
colorCorrection.Contrast = 0.08
colorCorrection.Saturation = 0.05

--------------------------------------------------
-- BLOOM
--------------------------------------------------

local bloom = Lighting:FindFirstChild("RTXBloom")

if not bloom then
	bloom = Instance.new("BloomEffect")
	bloom.Name = "RTXBloom"
	bloom.Parent = Lighting
end

bloom.Intensity = 0.08
bloom.Size = 18
bloom.Threshold = 1.2

--------------------------------------------------
-- SUN RAYS
--------------------------------------------------

local sunRays = Lighting:FindFirstChild("RTXSunRays")

if not sunRays then
	sunRays = Instance.new("SunRaysEffect")
	sunRays.Name = "RTXSunRays"
	sunRays.Parent = Lighting
end

sunRays.Intensity = 0.04
sunRays.Spread = 0.8