Universal Script 📌
25.1k Views
165 Executions

RTX V1

Universal Script 📌
c00lkiddscripts
c00lkiddscriptsFirst script
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

shaders

View Raw
-- Services so it can take control of the lighting engine 
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local Lighting = game:GetService("Lighting")
local Workspace = game:GetService("Workspace")
-- Disable built-in lighting effects modify this to lighting brightness 0 but it will be very dark unless you crank up all the ray numbers lol
Lighting.Brightness = 0.2
Lighting.Ambient = Color3.new(0, 0, 0)
Lighting.OutdoorAmbient = Color3.new(0, 0, 0)
Lighting.GlobalShadows = false
Lighting.EnvironmentDiffuseScale = 0
Lighting.EnvironmentSpecularScale = 0
local localPlayer = Players.LocalPlayer
local camera = Workspace.CurrentCamera
-- Wait for the player's character to load
local character = localPlayer.Character or localPlayer.CharacterAdded:Wait()
-- settings
local sunDirection = Vector3.new(1, -1, 1).Unit -- Adjusted sun direction
local sunColor = Color3.fromRGB(255, 255, 224) -- Soft sunlight color
local sunIntensity = 100 -- Sun intensity
local skyColor = Color3.fromRGB(135, 206, 235) -- Sky blue color
local skyIntensity = 0.5 -- Sky intensity
local maxDistance = 50000 -- Maximum distance for rays
local gammaCorrection = 10 -- For gamma correction
-- LOD Settings
local maxRays = 100000 -- Maximum number of rays per point
local minRays = 10000 -- Minimum number of rays per point
local lodDistance = 200 -- Distance at which LOD reduces rays
local function getSurfaceNormal(part, position)
	if part:IsA("MeshPart") or part:IsA("UnionOperation") then
		-- Approximate normal for MeshParts and Unions
		local normal = (position - part.Position).Unit
		return normal
	else
		
		local relativePosition = part.CFrame:PointToObjectSpace(position)
		local halfSize = part.Size / 2
		local normals = {
			Vector3.new(1, 0, 0),
			Vector3.new(-1, 0, 0),


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Script hub
16.0k
93.4k
Bumped 5 minutes ago
Key System

Script hub

Kronos New

Universal Script 📌
48.5k
46.5k
Bumped 3 hours ago
Universal Script 📌
1.5k
1.3k
Bumped 5 hours ago
Universal Script 📌
4.2k
56.4k
Bumped 6 hours ago
Universal Script 📌
7.1k
71.4k
Bumped 7 hours ago
Script hub
3.5M
1.2M
Bumped 8 hours ago
Key System