local RTXGraphics = {}
-- Configuration settings RTXGraphics.settings = { enabled = false, bloomEnabled = true, shadowQuality = "High", reflectionQuality = "High", ambientOcclusion = true, dynamicSkyEnabled = true, exposureCompensation = 0.5 }
-- LightingService reference local Lighting = game:GetService("Lighting")
-- Original lighting settings storage local originalSettings = {}
-- Save original lighting settings local function saveOriginalSettings() originalSettings = { Technology = Lighting.Technology, GlobalShadows = Lighting.GlobalShadows, ShadowSoftness = Lighting.ShadowSoftness, Brightness = Lighting.Brightness, Ambient = Lighting.Ambient, OutdoorAmbient = Lighting.OutdoorAmbient, ColorShift_Top = Lighting.ColorShift_Top, ColorShift_Bottom = Lighting.ColorShift_Bottom, EnvironmentDiffuseScale = Lighting.EnvironmentDiffuseScale, EnvironmentSpecularScale = Lighting.EnvironmentSpecularScale, ExposureCompensation = Lighting.ExposureCompensation, ClockTime = Lighting.ClockTime } end
-- Apply RTX effects function RTXGraphics.enable() if RTXGraphics.settings.enabled then return end
saveOriginalSettings()
-- Set advanced lighting Lighting.Technology = Enum.Technology.Voxel Lighting.GlobalShadows = true Lighting.ShadowSoftness = 0.15
-- Adjust brightness and colors Lighting.Brightness = 2.0 Lighting.Ambient = Color3.fromRGB(40, 40, 40) Lighting.OutdoorAmbient = Color3.fromRGB(120, 120, 120) Lighting.ColorShift_Top = Color3.fromRGB(255, 220, 180) Lighting.ColorShift_Bottom = Color3.fromRGB(100, 100, 150)
-- Environment lighting Lighting.EnvironmentDiffuseScale = 1.0 Lighting.EnvironmentSpecularScale = 1.0 Lighting.ExposureCompensation = RTXGraphics.settings.exposureCompensation
-- Time of day Lighting.ClockTime = 14
-- Post-processing effects if RTXGraphics.settings.bloomEnabled then local bloom = Instance.new("BloomEffect") bloom.Name = "RTXBloom" bloom.Intensity = 0.4 bloom.Size = 24 bloom.Threshold = 0.9 bloom.Parent = Lighting end
if RTXGraphics.settings.ambientOcclusion then local ao = Instance.new("DepthOfFieldEffect") ao.Name = "RTXAmbientOcclusion" ao.FarIntensity = 0.1 ao.NearIntensity = 0.3 ao.InFocusRadius = 50 ao.Parent = Lighting end
if RTXGraphics.settings.dynamicSkyEnabled then local sky = Instance.new("Sky") sky.Name = "RTXDynamicSky" sky.SkyboxBk = "rbxassetid://323494035" sky.SkyboxDn = "rbxassetid://323494035" sky.SkyboxFt = "rbxassetid://323494035" sky.SkyboxLf = "rbxassetid://323494035" sky.SkyboxRt = "rbxassetid://323494035" sky.SkyboxUp = "rbxassetid://323494035" sky.CelestialBodiesShown = true sky.SunAngularSize = 21 sky.MoonAngularSize = 11 sky.Parent = Lighting end
RTXGraphics.settings.enabled = true end
-- Disable RTX effects and restore original settings function RTXGraphics.disable() if not RTXGraphics.settings.enabled then return end
-- Restore original lighting settings for setting, value in pairs(originalSettings) do Lighting[setting] = value end
-- Remove post-processing effects for _, effect in ipairs(Lighting:GetChildren()) do if string.find(effect.Name, "RTX") then effect:Destroy() end end
RTXGraphics.settings.enabled = false end
-- Toggle RTX effects function RTXGraphics.toggle() if RTXGraphics.settings.enabled then RTXGraphics.disable() else RTXGraphics.enable() end end
-- Update RTX settings function RTXGraphics.updateSettings(newSettings) for setting, value in pairs(newSettings) do if RTXGraphics.settings[setting] ~= nil then RTXGraphics.settings[setting] = value end end
if RTXGraphics.settings.enabled then RTXGraphics.disable() RTXGraphics.enable() end end
return RTXGraphics </jitFile>
<jitFile type="file" filePath="RTXControlScript.lua"> -- RTX Control Script for Roblox -- Provides a GUI to control RTX effectslocal ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService")
-- Import RTX module local RTXGraphics = require(script.Parent.RTXGraphics)
-- Create GUI local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui") screenGui.Name = "RTXControlPanel" screenGui.ResetOnSpawn = false screenGui.Parent = playerGui
local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 300, 0, 400) frame.Position = UDim2.new(0.5, -150, 0.5, -200) frame.AnchorPoint = Vector2.new(0.5, 0.5) frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40) frame.BorderSizePixel = 0 frame.Parent = screenGui
local title = Instance.new("TextLabel") title.Text_