Run it
Copy the script and paste it into your executor.
Players = :()
Lighting = :()
RunService = :()
UserInputService = :()
Workspace = :()
player = Players.LocalPlayer
player
()
.() Workspace.CurrentCamera
camera = Workspace.CurrentCamera
terrain = Workspace.Terrain
playerGui = player:()
guiParent = playerGui
(gethui) ==
ok, hiddenGui = (gethui)
ok hiddenGui
guiParent = hiddenGui
_, container ({guiParent, playerGui, Lighting})
_, name ({, , , , , , , , , , , , , })
old = container:(name)
old (() old:() )
TRANSITION_SPEED =
WEATHER_SPEED =
FOCUS_SPEED =
MAX_FOCUS =
MOTION_BLUR_STRENGTH =
MOTION_BLUR_MAX =
CLOCK_SPEED =
RAIN_DROPS =
AUTO_WEATHER_MIN =
AUTO_WEATHER_MAX =
REPLACE_EXISTING_EFFECTS =
qualityScale =
qualityMode =
autoQuality =
fpsAverage =
qualityCheckTimer =
fpsUiTimer =
WHITE = .(, , )
COOL_GREY = .(, , )
GOLDEN_TINT = .(, , )
NIGHT_TINT = .(, , )
GREY_AMBIENT = .(, , )
NIGHT_AMBIENT = .(, , )
NIGHT_OUTDOOR = .(, , )
WARM_SUN = .(, , )
WARM_BOUNCE = .(, , )
GREY_FOG = .(, , )
GREY_DECAY = .(, , )
GOLD_FOG = .(, , )
GOLD_DECAY = .(, , )
NIGHT_FOG = .(, , )
NIGHT_DECAY = .(, , )
WATER_FOG = .(, , )
WATER_DECAY = .(, , )
CLOUD_GOLD = .(, , )
CLOUD_NIGHT = .(, , )
CLOUD_GLOOM = .(, , )
GREY_WATER = .(, , )
config = { Master = }
FEATURES = {
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
{ group = , key = , label = , on = },
}
features = {}
_, f (FEATURES)
features[f.key] = f.on
(base, over)
out = {}
k, v (base)
out[k] = ((v) == ) (v, {}) v
k, v (over)
(v) ==
out[k] = (out[k] {}, v)
out[k] = v
out
DEFAULT = {
Lighting = {
Brightness = ,
ExposureCompensation = ,
EnvironmentDiffuseScale = ,
EnvironmentSpecularScale = ,
ShadowSoftness = ,
Ambient = .(, , ),
OutdoorAmbient = .(, , ),
ColorShift_Top = .(, , ),
ColorShift_Bottom = .(, , ),
},
Bloom = { Intensity = , Size = , Threshold = },
Color = { Brightness = , Contrast = , Saturation = , TintColor = .(, , ) },
SunRays = { Intensity = , Spread = },
DOF = { FarIntensity = , NearIntensity = , InFocusRadius = , FocusDistance = },
Atmosphere = {
Density = , Offset = , Glare = , Haze = ,
Color = .(, , ), Decay = .(, , ),
},
Water = {
WaterColor = .(, , ), WaterReflectance = ,
WaterTransparency = , WaterWaveSize = , WaterWaveSpeed = ,
},
Vignette = ,
}
PRESETS = {
Realistic = DEFAULT,
Cinematic = (DEFAULT, {
Lighting = { Brightness = , ExposureCompensation = - },
Bloom = { Intensity = , Size = , Threshold = },
Color = { Contrast = , Saturation = -, TintColor = .(, , ) },
SunRays = { Intensity = },
DOF = { FarIntensity = , NearIntensity = , InFocusRadius = },
Atmosphere = { Density = , Haze = },
Water = { WaterColor = .(, , ), WaterWaveSize = },
Vignette = ,
}),
Vibrant = (DEFAULT, {
Lighting = { Brightness = , ExposureCompensation = },
Bloom = { Intensity = },
Color = { Brightness = , Contrast = , Saturation = , TintColor = .(, , ) },
SunRays = { Intensity = },
DOF = { FarIntensity = },
Atmosphere = { Density = , Haze = , Color = .(, , ) },
Water = { WaterColor = .(, , ), WaterTransparency = , WaterWaveSpeed = },
Vignette = ,
}),
Noir = (DEFAULT, {
Lighting = { Brightness = , ExposureCompensation = - },
Bloom = { Intensity = , Threshold = },
Color = { Brightness = -, Contrast = , Saturation = -, TintColor = .(, , ) },
SunRays = { Intensity = },
DOF = { FarIntensity = },
Atmosphere = { Density = , Color = .(, , ), Decay = .(, , ) },
Water = { WaterColor = .(, , ), WaterReflectance = , WaterTransparency = },
Vignette = ,
}),
Cyberpunk = (DEFAULT, {
Lighting = {
Brightness = , ExposureCompensation = , EnvironmentDiffuseScale = ,
Ambient = .(, , ), OutdoorAmbient = .(, , ),
ColorShift_Top = .(, , ), ColorShift_Bottom = .(, , ),
},
Bloom = { Intensity = , Size = , Threshold = },
Color = { Contrast = , Saturation = , TintColor = .(, , ) },
SunRays = { Intensity = },
Atmosphere = {
Density = , Glare = , Haze = ,
Color = .(, , ), Decay = .(, , ),
},
Water = {
WaterColor = .(, , ), WaterReflectance = , WaterTransparency = ,
WaterWaveSize = , WaterWaveSpeed = ,
},
Vignette = ,
}),
Sunset = (DEFAULT, {
Lighting = {
Brightness = ,
Ambient = .(, , ), OutdoorAmbient = .(, , ),
ColorShift_Top = .(, , ),
},
Bloom = { Intensity = , Threshold = },
Color = { Contrast = , Saturation = , TintColor = .(, , ) },
SunRays = { Intensity = , Spread = },
Atmosphere = {
Density = , Glare = , Haze = ,
Color = .(, , ), Decay = .(, , ),
},
Water = { WaterColor = .(, , ), WaterReflectance = },
Vignette = ,
}),
Dreamy = (DEFAULT, {
Lighting = { Brightness = },
Bloom = { Intensity = , Size = , Threshold = },
Color = { Brightness = , Contrast = -, Saturation = , TintColor = .(, , ) },
SunRays = { Intensity = },
DOF = { FarIntensity = , NearIntensity = , InFocusRadius = },
Atmosphere = { Density = , Haze = , Color = .(, , ) },
Water = { WaterColor = .(, , ), WaterTransparency = , WaterWaveSize = , WaterWaveSpeed = },
Vignette = ,
}),
Horror = (DEFAULT, {
Lighting = {
Brightness = , ExposureCompensation = -, ShadowSoftness = ,
Ambient = .(, , ), OutdoorAmbient = .(, , ),
ColorShift_Top = .(, , ),
},
Bloom = { Intensity = },
Color = { Brightness = -, Contrast = , Saturation = -, TintColor = .(, , ) },
SunRays = { Intensity = },
DOF = { FarIntensity = , NearIntensity = , InFocusRadius = },
Atmosphere = {
Density = , Glare = , Haze = ,
Color = .(, , ), Decay = .(, , ),
},
Water = {
WaterColor = .(, , ), WaterReflectance = , WaterTransparency = ,
WaterWaveSize = , WaterWaveSpeed = ,
},
Vignette = ,
}),
}
PRESET_ORDER = { , , , , , , , , , , , }
PRESETS.UltraRealism = (DEFAULT, {
Lighting = {
Brightness = , ExposureCompensation = -,
EnvironmentDiffuseScale = , EnvironmentSpecularScale = ,
ShadowSoftness = ,
Ambient = .(, , ),
OutdoorAmbient = .(, , ),
ColorShift_Top = .(, , ),
},
Bloom = { Intensity = , Size = , Threshold = },
Color = {
Brightness = -, Contrast = , Saturation = ,
TintColor = .(, , ),
},
SunRays = { Intensity = , Spread = },
DOF = { FarIntensity = , NearIntensity = , InFocusRadius = },
Atmosphere = {
Density = , Offset = , Glare = , Haze = ,
Color = .(, , ),
Decay = .(, , ),
},
Water = {
WaterColor = .(, , ),
WaterReflectance = , WaterTransparency = ,
WaterWaveSize = , WaterWaveSpeed = ,
},
Vignette = ,
})
PRESETS.EcoGloom = (DEFAULT, {
Lighting = {
Brightness = , ExposureCompensation = -,
Ambient = .(, , ), OutdoorAmbient = .(, , ),
ColorShift_Top = .(, , ),
ColorShift_Bottom = .(, , ),
ShadowSoftness = ,
},
Bloom = { Intensity = , Size = , Threshold = },
Color = { Brightness = -, Contrast = , Saturation = -, TintColor = .(, , ) },
SunRays = { Intensity = , Spread = },
Atmosphere = { Density = , Offset = , Glare = , Haze = ,
Color = .(, , ), Decay = .(, , ) },
Water = { WaterColor = .(, , ), WaterReflectance = , WaterTransparency = },
Vignette = ,
})
PRESETS.UltraRealism = (PRESETS.UltraRealism, {
Lighting = { Brightness = , ExposureCompensation = -, ShadowSoftness = ,
EnvironmentDiffuseScale = , EnvironmentSpecularScale = ,
Ambient = .(, , ), OutdoorAmbient = .(, , ) },
Bloom = { Intensity = , Size = , Threshold = },
Color = { Brightness = -, Contrast = , Saturation = , TintColor = .(, , ) },
SunRays = { Intensity = , Spread = },
Atmosphere = { Density = , Offset = , Glare = , Haze = ,
Color = .(, , ), Decay = .(, , ) },
Water = { WaterColor = .(, , ), WaterReflectance = ,
WaterTransparency = , WaterWaveSize = , WaterWaveSpeed = },
Vignette = ,
})
PRESETS.StarryNight = (DEFAULT, {
Lighting = { Brightness = , ExposureCompensation = -,
Ambient = .(, , ), OutdoorAmbient = .(, , ),
ColorShift_Top = .(, , ), ColorShift_Bottom = .(, , ) },
Bloom = { Intensity = , Size = , Threshold = },
Color = { Brightness = -, Contrast = , Saturation = , TintColor = .(, , ) },
SunRays = { Intensity = , Spread = },
Atmosphere = { Density = , Offset = , Glare = , Haze = ,
Color = .(, , ), Decay = .(, , ) },
Water = { WaterColor = .(, , ), WaterReflectance = , WaterTransparency = },
Vignette = ,
})
PRESETS.Aurora = (PRESETS.StarryNight, {
Lighting = { Ambient = .(, , ), OutdoorAmbient = .(, , ),
ColorShift_Top = .(, , ) },
Bloom = { Intensity = , Size = , Threshold = },
Color = { Brightness = -, Contrast = , Saturation = , TintColor = .(, , ) },
Atmosphere = { Density = , Offset = , Glare = , Haze = ,
Color = .(, , ), Decay = .(, , ) },
Water = { WaterColor = .(, , ), WaterReflectance = },
Vignette = ,
})
WEATHER_BASE = { cover = , density = , gloom = , fog = , rain = , snow = , storm = }
WEATHER = {
Clear = (WEATHER_BASE, {}),
Cloudy = (WEATHER_BASE, { cover = , density = , gloom = }),
Overcast = (WEATHER_BASE, { cover = , density = , gloom = }),
Foggy = (WEATHER_BASE, { cover = , density = , gloom = , fog = }),
Rain = (WEATHER_BASE, { cover = , density = , gloom = , fog = , rain = }),
Storm = (WEATHER_BASE, { cover = , density = , gloom = , fog = , rain = , storm = }),
Snow = (WEATHER_BASE, { cover = , density = , gloom = , fog = , snow = }),
}
WEATHER_ORDER = { , , , , , , }
currentPreset =
currentWeather =
strength =
wx = (WEATHER_BASE, {})
uw =
indoor, indoorTarget = ,
sunVisible =
eyeExposure =
flash, pendingFlash, boltTimer = , ,
flareAmt =
lastSunPx = .(, )
barCur =
vig =
fovTouched =
baseFov = camera.FieldOfView
lastLook = camera.CFrame.LookVector
waterTimer, sampleTimer, timeUiTimer = , ,
underwater =
weatherTimer = .(AUTO_WEATHER_MIN, AUTO_WEATHER_MAX)
refreshUI
timeSlider
LIGHTING_PROPS = {
, , , ,
, , , , ,
}
original = {}
_, p (LIGHTING_PROPS)
original[p] = Lighting[p]
WATER_PROPS = { , , , , }
waterOrig = {}
_, p (WATER_PROPS)
waterOrig[p] = terrain[p]
(className, name, props)
old = Lighting:(name)
old old:()
inst = .(className)
inst.Name = name
k, v (props)
inst[k] = v
inst.Parent = Lighting
inst
bloom = (, , { Intensity = , Size = , Threshold = })
grade = (, , { Brightness = , Contrast = , Saturation = })
sunRays = (, , { Intensity = , Spread = })
dof = (, , { FarIntensity = , NearIntensity = , InFocusRadius = , FocusDistance = })
atmosphere = (, , { Density = , Offset = , Glare = , Haze = })
motionBlur = (, , { Size = , Enabled = })
waterGrade = (, , {
Brightness = -, Contrast = , Saturation = ,
TintColor = .(, , ), Enabled = ,
})
waterBlur = (, , { Size = , Enabled = })
flashGrade = (, , {
Brightness = , Contrast = , Saturation = ,
TintColor = .(, , ), Enabled = ,
})
(name, order)
g = .()
g.Name = name
g.ResetOnSpawn =
g.IgnoreGuiInset =
g.DisplayOrder = order
g.Parent = guiParent
g
vigGui = (, )
vigEdges = {}
(anchor, position, size, rotation)
f = .()
f.BorderSizePixel =
f.BackgroundColor3 = .(, , )
f.BackgroundTransparency =
f.AnchorPoint = anchor
f.Position = position
f.Size = size
g = .()
g.Rotation = rotation
g.Transparency = NumberSequence.(, )
g.Parent = f
f.Parent = vigGui
.(vigEdges, f)
(.(, ), .(, ), .(, ), )
(.(, ), .(, ), .(, ), )
(.(, ), .(, ), .(, ), )
(.(, ), .(, ), .(, ), )
(strengthValue)
t = - .(strengthValue, , )
_, f (vigEdges)
f.BackgroundTransparency = t
barsGui = (, )
(anchorY)
f = .()
f.BorderSizePixel =
f.BackgroundColor3 = .(, , )
f.AnchorPoint = .(, anchorY)
f.Position = .(, anchorY)
f.Size = .(, )
f.Parent = barsGui
f
barTop, barBottom = (), ()
flareGui = (, )
flareParts = {}
(k, size, color, alpha, ring, streak)
f = .()
f.AnchorPoint = .(, )
f.BorderSizePixel =
f.BackgroundColor3 = color
f.BackgroundTransparency =
e = { frame = f, k = k, size = size, alpha = alpha, streak = streak }
streak
g = .()
g.Transparency = NumberSequence.({
NumberSequenceKeypoint.(, ),
NumberSequenceKeypoint.(, ),
NumberSequenceKeypoint.(, ),
})
g.Parent = f
c = .()
c.CornerRadius = .(, )
c.Parent = f
ring
s = .()
s.Color = color
s.Thickness =
s.Transparency =
s.Parent = f
f.BackgroundTransparency =
e.stroke = s
f.Parent = flareGui
.(flareParts, e)
(, , .(, , ), )
(, , .(, , ), )
(, , .(, , ), )
(, , .(, , ), )
(, , .(, , ), )
(, , .(, , ), , )
(, , .(, , ), )
(, , .(, , ), , )
(, , .(, , ), )
(, , .(, , ), , , )
rainGui = (, -)
drops = {}
i = , RAIN_DROPS
f = .()
f.AnchorPoint = .(, )
f.BorderSizePixel =
f.BackgroundColor3 = .(, , )
f.BackgroundTransparency = + .() *
f.Size = .(.(, ), .(, ))
f.Visible =
f.Parent = rainGui
drops[i] = {
frame = f,
x = .() * - ,
y = .(),
speed = + .() * ,
on = ,
}
(dt, amount, slantDeg, vp)
count = .(RAIN_DROPS * .(amount, , ))
drift = .(.(slantDeg)) * (vp.Y / .(vp.X, ))
i, d (drops)
i <= count
d.on
d.on =
d.frame.Visible =
d.y += d.speed * dt
d.x += d.speed * dt * drift
d.y >
d.y = -
d.x = .() * -
d.x > d.x = -
d.frame.Position = .(d.x, d.y)
d.frame.Rotation = -slantDeg
d.on
d.on =
d.frame.Visible =
snowPart = .()
snowPart.Name =
snowPart.Anchored =
snowPart.CanCollide =
snowPart.CanQuery =
snowPart.CanTouch =
snowPart.CastShadow =
snowPart.Transparency =
snowPart.Size = .(, , )
snowPart.Parent = Workspace
snowEmitter = .()
snowEmitter.Texture =
snowEmitter.Rate =
snowEmitter.Lifetime = NumberRange.(, )
snowEmitter.Speed = NumberRange.(, )
snowEmitter.EmissionDirection = .NormalId.Bottom
snowEmitter.SpreadAngle = .(, )
snowEmitter.Acceleration = .(, , )
snowEmitter.Size = NumberSequence.(, )
snowEmitter.Transparency = NumberSequence.({
NumberSequenceKeypoint.(, ),
NumberSequenceKeypoint.(, ),
NumberSequenceKeypoint.(, ),
NumberSequenceKeypoint.(, ),
})
snowEmitter.Color = ColorSequence.(WHITE)
snowEmitter.LightEmission =
snowEmitter.RotSpeed = NumberRange.(-, )
snowEmitter.Parent = snowPart
humanoid, rootPart
rayParams = RaycastParams.()
rayParams.FilterType = .RaycastFilterType.Exclude
(char)
rayParams.FilterDescendantsInstances = { char }
humanoid = char:()
rootPart = char:()
player.Character .(bindCharacter, player.Character)
player.CharacterAdded:(bindCharacter)
stashed = {}
()
REPLACE_EXISTING_EFFECTS
_, child (Lighting:())
(child:() child:()) child.Name:(, ) ~=
.(stashed, child)
child.Parent =
()
_, inst (stashed)
inst.Parent = Lighting
.(stashed)
clouds, cloudsOrig, cloudsOwn
()
clouds clouds.Parent
clouds = terrain:()
cloudsOwn =
clouds
cloudsOrig = { Cover = clouds.Cover, Density = clouds.Density, Color = clouds.Color, Enabled = clouds.Enabled }
clouds = .()
clouds.Name =
clouds.Parent = terrain
cloudsOwn =
()
(clouds clouds.Parent)
cloudsOwn
clouds:()
clouds =
k, v (cloudsOrig)
clouds[k] = v
sky, skyOrig, skyOwn
()
sky sky.Parent
sky = Lighting:()
skyOwn =
sky
skyOrig = {
StarCount = sky.StarCount, SunAngularSize = sky.SunAngularSize,
MoonAngularSize = sky.MoonAngularSize, CelestialBodiesShown = sky.CelestialBodiesShown,
}
sky = .()
sky.Name =
sky.Parent = Lighting
skyOwn =
()
(sky sky.Parent)
skyOwn
sky:()
sky =
k, v (skyOrig)
sky[k] = v
()
p, v (waterOrig)
terrain[p] = v
(inst, prop, target, a)
cur = inst[prop]
(cur) ==
inst[prop] = cur:(target, a)
inst[prop] = cur + (target - cur) * a
(inst, tbl, a)
prop, value (tbl)
(inst, prop, value, a)
scratch = { Lighting = {}, Bloom = {}, Color = {}, SunRays = {}, DOF = {}, Atmo = {}, Water = {} }
(dst, src)
k (dst) dst[k] =
k, v (src) dst[k] = v
dst
(pos)
ok, result = (()
cell = terrain:(pos)
center = terrain:(cell.X, cell.Y, cell.Z)
region = Region3.(center - .one * , center + .one * )
materials, occupancy = terrain:(region, )
materials[][][] ~= .Material.Water
surfaceY = (center.Y - ) + occupancy[][][] *
pos.Y < surfaceY
)
ok result
SKY_RAYS = {
.(, , ),
.(, , ).Unit,
.(-, , ).Unit,
.(, , ).Unit,
.(, , -).Unit,
}
()
origin = camera.CFrame.Position
hits =
_, dir (SKY_RAYS)
Workspace:(origin, dir * , rayParams)
hits +=
indoorTarget = hits / #SKY_RAYS
sunDir = Lighting:()
sunVisible = sunDir.Y > - Workspace:(origin, sunDir * , rayParams) ==
()
m = config.Master
bloom.Enabled = m features.Bloom
grade.Enabled = m features.ColorGrade
sunRays.Enabled = m features.SunRays
dof.Enabled = m features.DepthOfField
(m features.MotionBlur)
motionBlur.Enabled =
motionBlur.Size =
atmosphere.Parent = (m features.Atmosphere) Lighting
m
waterGrade.Enabled =
waterBlur.Enabled =
flashGrade.Enabled =
vigGui.Enabled = m
barsGui.Enabled = m
rainGui.Enabled = m
flareGui.Enabled = m features.LensFlare
(name)
currentWeather = name
features.Weather =
refreshUI ()
()
pool = {}
_, n (WEATHER_ORDER)
n ~= currentWeather
.(pool, n)
(pool[.(#pool)])
(dt, sunDir, vp)
target =
features.LensFlare
pos, onScreen = camera:(camera.CFrame.Position + sunDir * )
onScreen pos.Z > sunVisible
lastSunPx = .(pos.X, pos.Y)
fromCenter = (lastSunPx - vp / ).Magnitude / .(vp.Magnitude / , )
target = .( - fromCenter * , , )
target *= .(sunDir.Y * + , , )
target *= ( - * wx.cover)
target *= ( - uw)
flareAmt += (target - flareAmt) * ( - .(-dt * ))
flareGui.Enabled = flareAmt >
flareGui.Enabled
axis = vp / - lastSunPx
_, e (flareParts)
p = lastSunPx + axis * e.k
e.frame.Position = .(p.X, p.Y)
e.streak
e.frame.Size = .(vp.X * , )
s = e.size * vp.Y
e.frame.Size = .(s, s)
tr = - flareAmt * e.alpha
e.stroke
e.stroke.Transparency = tr
e.frame.BackgroundTransparency = tr
RunService.RenderStepped:((rawDt)
config.Master
activeCamera = Workspace.CurrentCamera
activeCamera
camera ~= activeCamera
camera = activeCamera
baseFov = camera.FieldOfView
lastLook = camera.CFrame.LookVector
fovTouched =
dt = .(rawDt, )
instantFPS = / .(rawDt, / )
fpsAverage += (instantFPS - fpsAverage) * ( - .(-dt * ))
qualityCheckTimer += dt
autoQuality qualityCheckTimer >=
qualityCheckTimer =
fpsAverage <
qualityScale = .(, qualityScale - )
fpsAverage >
qualityScale = .(, qualityScale + )
refreshUI ()
fpsUiTimer += dt
preset = PRESETS[currentPreset]
S = strength
a = - .(-dt * TRANSITION_SPEED)
fa = - .(-dt * FOCUS_SPEED)
vp = camera.ViewportSize
features.DayNightCycle
Lighting.ClockTime = (Lighting.ClockTime + dt * CLOCK_SPEED) %
sunDir = Lighting:()
sunHeight = sunDir.Y
dayFactor = features.NightAdapt .(sunHeight * + , , )
night = .(-sunHeight * , , )
golden = .( - .(sunHeight) / , , )
tg = features.TimeGrade
timeUiTimer -= dt
timeUiTimer <= timeSlider
timeUiTimer =
timeSlider.(Lighting.ClockTime)
wTarget = features.Weather WEATHER[currentWeather] WEATHER.Clear
wa = - .(-dt * WEATHER_SPEED)
k, v (wTarget)
wx[k] += (v - wx[k]) * wa
features.AutoWeather
weatherTimer -= dt
weatherTimer <=
weatherTimer = .(AUTO_WEATHER_MIN, AUTO_WEATHER_MAX)
()
sampleTimer -= dt
sampleTimer <=
sampleTimer = / .(qualityScale, )
()
indoor += (indoorTarget - indoor) * ( - .(-dt * ))
waterTimer += dt
waterTimer > ( / .(qualityScale, ))
waterTimer =
underwater = features.UnderwaterFX (camera.CFrame.Position)
uw += ((underwater ) - uw) * ( - .(-dt * ))
waterGrade.Enabled = underwater
waterBlur.Enabled = underwater
danger =
features.LowHealthFX humanoid humanoid.Parent humanoid.MaxHealth >
frac = humanoid.Health / humanoid.MaxHealth
danger = .(( - frac) / , , )
features.Weather wx.storm >
boltTimer -= dt
boltTimer <=
flash =
boltTimer = + .() *
pendingFlash = (.() < )
pendingFlash
pendingFlash -= dt
pendingFlash <=
flash = .(flash, )
pendingFlash =
flash *= .(-dt * )
flashAmt = flash * ( - indoor * )
flashGrade.Enabled = flashAmt >
flashGrade.Enabled
flashGrade.Brightness = flashAmt *
flashGrade.Contrast = flashAmt *
exposureTarget =
features.AutoExposure
exposureTarget += indoor * * ( + * dayFactor)
facing = .(, camera.CFrame.LookVector:(sunDir)) ^
exposureTarget -= facing * * dayFactor * (sunVisible ) * ( - * wx.cover)
eyeExposure += (exposureTarget - eyeExposure) * ( - .(-dt * ))
lt = (scratch.Lighting, preset.Lighting)
lt.Brightness = lt.Brightness * ( - * wx.gloom)
lt.ExposureCompensation = lt.ExposureCompensation - * wx.gloom + eyeExposure
lt.EnvironmentSpecularScale = .(, lt.EnvironmentSpecularScale + * wx.rain)
lt.Ambient = lt.Ambient:(GREY_AMBIENT, wx.gloom * )
lt.OutdoorAmbient = lt.OutdoorAmbient:(GREY_AMBIENT, wx.gloom * )
tg >
lt.Ambient = lt.Ambient:(NIGHT_AMBIENT, night * )
lt.OutdoorAmbient = lt.OutdoorAmbient:(NIGHT_OUTDOOR, night * )
lt.ColorShift_Top = lt.ColorShift_Top:(WARM_SUN, golden * )
lt.ColorShift_Bottom = lt.ColorShift_Bottom:(WARM_BOUNCE, golden * )
(Lighting, lt, a)
features.Bloom
t = (scratch.Bloom, preset.Bloom)
t.Intensity = t.Intensity * S * ( + ( - dayFactor) * )
(bloom, t, a)
features.ColorGrade
t = (scratch.Color, preset.Color)
t.Brightness = t.Brightness * S
t.Contrast = t.Contrast * S
t.Saturation = t.Saturation * S
t.TintColor = WHITE:(t.TintColor, .(S, ))
t.Saturation = t.Saturation - * wx.gloom - * wx.snow
t.TintColor = t.TintColor:(COOL_GREY, wx.gloom * + wx.snow * )
tg >
t.TintColor = t.TintColor:(GOLDEN_TINT, golden * )
t.TintColor = t.TintColor:(NIGHT_TINT, night * )
t.Saturation = t.Saturation + golden * - night *
t.Contrast = t.Contrast + golden *
features.RainbowTint
t.TintColor = .((.() * ) % , , )
danger >
t.Saturation = t.Saturation - danger *
t.TintColor = t.TintColor:(.(, , ), danger * )
t.Saturation = .(t.Saturation, -, )
t.Contrast = .(t.Contrast, -, )
t.Brightness = .(t.Brightness, -, )
(grade, t, a)
features.SunRays
t = (scratch.SunRays, preset.SunRays)
t.Intensity = .(t.Intensity * S * dayFactor * ( - * wx.cover), , )
(sunRays, t, a)
features.Atmosphere
t = (scratch.Atmo, preset.Atmosphere)
t.Density = .(t.Density * S + * wx.fog + * wx.gloom + * uw, , )
t.Haze = t.Haze + * wx.fog + wx.gloom
t.Glare = t.Glare * ( - * wx.cover)
tg >
t.Color = t.Color:(GOLD_FOG, golden * ):(NIGHT_FOG, night * )
t.Decay = t.Decay:(GOLD_DECAY, golden * ):(NIGHT_DECAY, night * )
t.Glare = t.Glare + golden *
t.Color = t.Color:(GREY_FOG, wx.gloom * ):(WATER_FOG, uw * )
t.Decay = t.Decay:(GREY_DECAY, wx.gloom * ):(WATER_DECAY, uw * )
(atmosphere, t, a)
features.DepthOfField
t = (scratch.DOF, preset.DOF)
t.FarIntensity = t.FarIntensity * S
t.NearIntensity = t.NearIntensity * S
features.AutoFocus
origin = camera.CFrame.Position
hit = Workspace:(origin, camera.CFrame.LookVector * MAX_FOCUS, rayParams)
dist = hit (hit.Position - origin).Magnitude MAX_FOCUS
t.FocusDistance = dist
t.InFocusRadius = .(dist * , , )
t.NearIntensity =
(dof, t, fa)
features.Clouds
()
clouds.Enabled =
clouds.Cover = wx.cover
clouds.Density = wx.density
cc = WHITE:(CLOUD_GOLD, golden * * tg)
cc = cc:(CLOUD_NIGHT, night * * tg)
cc = cc:(CLOUD_GLOOM, wx.gloom * )
(clouds, , cc, a)
features.Celestial
()
sky.CelestialBodiesShown =
sky.StarCount = .(( ((currentPreset == ) (currentPreset == )) ) * night * ( - * wx.cover))
sky.SunAngularSize = + golden *
sky.MoonAngularSize =
features.WaterFX
t = (scratch.Water, preset.Water)
t.WaterWaveSize = .(, t.WaterWaveSize + * wx.storm + * wx.rain)
t.WaterWaveSpeed = t.WaterWaveSpeed + * wx.storm + * wx.rain
t.WaterColor = t.WaterColor:(GREY_WATER, wx.gloom * )
(terrain, t, a)
look = camera.CFrame.LookVector
features.MotionBlur
angle = .(.(lastLook:(look), -, ))
turnSpeed = angle / .(dt, / )
target = .(turnSpeed * MOTION_BLUR_STRENGTH, , MOTION_BLUR_MAX)
motionBlur.Size += (target - motionBlur.Size) * ( - .(-dt * ))
motionBlur.Enabled = motionBlur.Size >
lastLook = look
vigTarget = features.Vignette (preset.Vignette * S + wx.gloom * )
danger >
vigTarget += danger * + .(.() * ) * * danger
vig += (vigTarget - vig) * a
(vig)
barFrac = .(, ( - (vp.X / .(vp.Y, )) / ) / )
barTarget = features.Letterbox barFrac
barCur += (barTarget - barCur) * .(, a * )
barTop.Size = .(, barCur)
barBottom.Size = .(, barCur)
(dt, sunDir, vp)
shelter = ( - indoor) * ( - uw)
snowPart.CFrame = .(camera.CFrame.Position + .(, , ))
snowEmitter.Rate = * wx.snow * shelter * qualityScale
(dt, wx.rain * shelter * qualityScale, + * wx.storm, vp)
features.SpeedFOV rootPart rootPart.Parent
speed = rootPart.AssemblyLinearVelocity.Magnitude
target = baseFov + .((speed - ) * , , )
camera.FieldOfView += (target - camera.FieldOfView) * fa
fovTouched =
fovTouched
camera.FieldOfView += (baseFov - camera.FieldOfView) * a
.(camera.FieldOfView - baseFov) <
camera.FieldOfView = baseFov
fovTouched =
)
swaySeed = .() *
RunService:(, .RenderPriority.Camera.Value + , ()
(config.Master features.CameraSway)
cam = Workspace.CurrentCamera
cam
t = .() + swaySeed
planar =
rootPart rootPart.Parent
v = rootPart.AssemblyLinearVelocity
planar = .(v.X, , v.Z).Magnitude
move = .(planar / , , )
amp = + move * + wx.storm *
pitch = .(t * ) * amp + .(t * ) * amp *
yaw = .(t * + ) * amp
roll = .(t * + ) * amp *
bob = .(t * ) * * move
cam.CFrame = cam.CFrame * .(, bob, ) * .(pitch, yaw, roll)
)
COL_ON = .(, , )
COL_OFF = .(, , )
COL_SEL = .(, , )
gui = .()
gui.Name =
gui.ResetOnSpawn =
gui.DisplayOrder =
gui.Parent = guiParent
(inst, radius)
c = .()
c.CornerRadius = .(, radius )
c.Parent = inst
panel = .()
panel.Name =
panel.AnchorPoint = .(, )
panel.Position = .(, , , )
panel.Size = .(, , , )
panel.BackgroundColor3 = .(, , )
panel.BackgroundTransparency =
panel.Parent = gui
(panel, )
sizeLimit = .()
sizeLimit.MaxSize = .(, )
sizeLimit.Parent = panel
title = .()
title.BackgroundTransparency =
title.Position = .(, )
title.Size = .(, -, , )
title.Font = .Font.GothamBold
title.TextSize =
title.TextColor3 = .(, , )
title.TextXAlignment = .TextXAlignment.Left
title.Text =
title.Parent = panel
statusLabel = .()
statusLabel.BackgroundTransparency =
statusLabel.Position = .(, )
statusLabel.Size = .(, -, , )
statusLabel.Font = .Font.Gotham
statusLabel.TextSize =
statusLabel.TextColor3 = .(, , )
statusLabel.TextXAlignment = .TextXAlignment.Left
statusLabel.Text =
statusLabel.Parent = panel
titleLine = .()
titleLine.BorderSizePixel =
titleLine.BackgroundColor3 = .(, , )
titleLine.Position = .(, , , )
titleLine.Size = .(, -, , )
titleLine.Parent = panel
draggingPanel =
panelDragStart, panelStartPosition
title.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
draggingPanel =
panelDragStart = input.Position
panelStartPosition = panel.Position
)
UserInputService.InputChanged:((input)
draggingPanel (input.UserInputType == .UserInputType.MouseMovement
input.UserInputType == .UserInputType.Touch)
delta = input.Position - panelDragStart
panel.Position = .(
panelStartPosition.X.Scale, panelStartPosition.X.Offset + delta.X,
panelStartPosition.Y.Scale, panelStartPosition.Y.Offset + delta.Y
)
)
UserInputService.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
draggingPanel =
)
scroll = .()
scroll.BackgroundTransparency =
scroll.BorderSizePixel =
scroll.Position = .(, )
scroll.Size = .(, -, , -)
scroll.ScrollBarThickness =
scroll.CanvasSize = .()
scroll.AutomaticCanvasSize = .AutomaticSize.Y
scroll.Parent = panel
list = .()
list.Padding = .(, )
list.SortOrder = .SortOrder.LayoutOrder
list.Parent = scroll
order =
()
order +=
order
(text)
l = .()
l.BackgroundTransparency =
l.Size = .(, , , )
l.Font = .Font.GothamMedium
l.TextSize =
l.TextColor3 = .(, , )
l.TextXAlignment = .TextXAlignment.Left
l.Text = text
l.LayoutOrder = ()
l.Parent = scroll
(parent, text)
b = .()
b.BackgroundColor3 = COL_OFF
b.Size = .(, , , )
b.Font = .Font.GothamMedium
b.TextSize =
b.TextColor3 = .(, , )
b.Text = text
(b, )
b.Parent = parent
b
()
grid = .()
grid.BackgroundTransparency =
grid.Size = .(, , , )
grid.AutomaticSize = .AutomaticSize.Y
grid.LayoutOrder = ()
grid.Parent = scroll
layout = .()
layout.CellSize = .(, -, , )
layout.CellPadding = .(, )
layout.SortOrder = .SortOrder.LayoutOrder
layout.Parent = grid
grid
(text, minV, maxV, value, fmt, onChange)
holder = .()
holder.BackgroundTransparency =
holder.Size = .(, , , )
holder.LayoutOrder = ()
holder.Parent = scroll
label = .()
label.BackgroundTransparency =
label.Size = .(, , , )
label.Font = .Font.GothamMedium
label.TextSize =
label.TextColor3 = .(, , )
label.TextXAlignment = .TextXAlignment.Left
label.Parent = holder
track = .()
track.Position = .(, , , )
track.Size = .(, , , )
track.BackgroundColor3 = COL_OFF
track.BorderSizePixel =
(track, )
track.Parent = holder
fillBar = .()
fillBar.BackgroundColor3 = COL_SEL
fillBar.BorderSizePixel =
fillBar.Size = .(, )
(fillBar, )
fillBar.Parent = track
knob = .()
knob.AnchorPoint = .(, )
knob.Size = .(, )
knob.Position = .(, )
knob.BackgroundColor3 = WHITE
knob.BorderSizePixel =
(knob, )
knob.Parent = track
hit = .()
hit.BackgroundTransparency =
hit.Text =
hit.Position = .(, -, , )
hit.Size = .(, , , )
hit.Parent = holder
dragging =
(v, silent)
current = .(v, minV, maxV)
alpha = (current - minV) / (maxV - minV)
fillBar.Size = .(alpha, )
knob.Position = .(alpha, )
label.Text = text .. .. (current)
silent (current)
(x)
alpha = .((x - track.AbsolutePosition.X) / .(track.AbsoluteSize.X, ), , )
(minV + (maxV - minV) * alpha)
(input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
hit.InputBegan:((input)
(input)
dragging =
scroll.ScrollingEnabled =
(input.Position.X)
)
UserInputService.InputChanged:((input)
dragging (input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch)
(input.Position.X)
)
UserInputService.InputEnded:((input)
dragging (input)
dragging =
scroll.ScrollingEnabled =
)
(value, )
{
set = (v)
dragging (v, )
,
}
presetButtons, weatherButtons, featureButtons, qualityButtons = {}, {}, {}, {}
masterButton
refreshUI = ()
masterButton.BackgroundColor3 = config.Master COL_ON .(, , )
masterButton.Text = config.Master
name, b (presetButtons)
b.BackgroundColor3 = (name == currentPreset) COL_SEL COL_OFF
name, b (weatherButtons)
b.BackgroundColor3 = (features.Weather name == currentWeather) COL_SEL COL_OFF
activeQuality = autoQuality qualityMode
name, b (qualityButtons)
b.BackgroundColor3 = (name == activeQuality) COL_SEL COL_OFF
_, f (FEATURES)
b = featureButtons[f.key]
b.BackgroundColor3 = features[f.key] COL_ON COL_OFF
b.Text = (features[f.key] ) .. f.label
(on)
config.Master = on
on
()
p, v (original)
Lighting[p] = v
()
()
()
()
snowEmitter.Rate =
flash =
fovTouched
camera.FieldOfView = baseFov
fovTouched =
()
()
(name)
currentPreset = name
name == name ==
Lighting.ClockTime =
name ==
Lighting.ClockTime =
()
(listTable, current, step)
idx = .(listTable, current)
listTable[(idx - + step) % #listTable + ]
QUALITY_VALUES = { ECO = , BALANCED = , ULTRA = }
(name)
name ==
autoQuality =
qualityScale = .(qualityScale, , )
autoQuality =
qualityMode = name
qualityScale = QUALITY_VALUES[name]
()
masterButton = (scroll, )
masterButton.LayoutOrder = ()
masterButton.MouseButton1Click:(()
( config.Master)
)
()
presetGrid = ()
i, name (PRESET_ORDER)
b = (presetGrid, name)
b.LayoutOrder = i
presetButtons[name] = b
b.MouseButton1Click:(()
(name)
)
()
weatherGrid = ()
i, name (WEATHER_ORDER)
b = (weatherGrid, name)
b.LayoutOrder = i
weatherButtons[name] = b
b.MouseButton1Click:(()
(name)
)
()
qualityGrid = ()
i, name ({ , , , })
b = (qualityGrid, name)
b.LayoutOrder = i
qualityButtons[name] = b
b.MouseButton1Click:(()
(name)
)
()
(, , , strength, (v)
.(, .(v * + ))
, (v)
strength = v
)
timeSlider = (, , , Lighting.ClockTime, (v)
.(, .(v) % , .((v % ) * ))
, (v)
Lighting.ClockTime = v
)
onDisabled = {
Clouds = restoreClouds,
Celestial = restoreSky,
WaterFX = restoreWater,
}
lastGroup
_, f (FEATURES)
f.group ~= lastGroup
(f.group)
lastGroup = f.group
b = (scroll, )
b.LayoutOrder = ()
b.TextXAlignment = .TextXAlignment.Left
pad = .()
pad.PaddingLeft = .(, )
pad.Parent = b
featureButtons[f.key] = b
b.MouseButton1Click:(()
features[f.key] = features[f.key]
features[f.key] onDisabled[f.key]
onDisabled[f.key]()
()
()
)
fxButton = .()
fxButton.Size = .(, )
fxButton.Position = .(, )
fxButton.BackgroundColor3 = .(, , )
fxButton.BackgroundTransparency =
fxButton.Font = .Font.GothamBold
fxButton.TextSize =
fxButton.TextColor3 = WHITE
fxButton.Text =
(fxButton, )
fxButton.Parent = gui
fxStroke = .()
fxStroke.Color = .(, , )
fxStroke.Thickness =
fxStroke.Transparency =
fxStroke.Parent = fxButton
fxButton.MouseButton1Click:(()
panel.Visible = panel.Visible
)
panel.Visible =
UserInputService.InputBegan:((input, processed)
processed
key = input.KeyCode
key == .KeyCode.RightShift
panel.Visible = panel.Visible
key == .KeyCode.RightBracket
((PRESET_ORDER, currentPreset, ))
key == .KeyCode.LeftBracket
((PRESET_ORDER, currentPreset, -))
key == .KeyCode.Period
((WEATHER_ORDER, currentWeather, ))
key == .KeyCode.Comma
((WEATHER_ORDER, currentWeather, -))
)
()
()
()hi this is an shader for roblox it works for xeno

Universal