Advertisement
HuyTheWinter

RTX Shader

Dec 6th, 2021
8,287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. getgenv().mode = "Summer" -- Choose from Summer and Autumn
  2.  
  3.  
  4.  
  5.  
  6. local a = game.Lighting
  7. a.Ambient = Color3.fromRGB(33, 33, 33)
  8. a.Brightness = 6.67
  9. a.ColorShift_Bottom = Color3.fromRGB(0, 0, 0)
  10. a.ColorShift_Top = Color3.fromRGB(255, 247, 237)
  11. a.EnvironmentDiffuseScale = 0.105
  12. a.EnvironmentSpecularScale = 0.522
  13. a.GlobalShadows = true
  14. a.OutdoorAmbient = Color3.fromRGB(51, 54, 67)
  15. a.ShadowSoftness = 0.04
  16. a.GeographicLatitude = -15.525
  17. a.ExposureCompensation = 0.75
  18. local b = Instance.new("BloomEffect", a)
  19. b.Enabled = true
  20. b.Intensity = 0.04
  21. b.Size = 1900
  22. b.Threshold = 0.915
  23. local c = Instance.new("ColorCorrectionEffect", a)
  24. c.Brightness = 0.176
  25. c.Contrast = 0.39
  26. c.Enabled = true
  27. c.Saturation = 0.2
  28. c.TintColor = Color3.fromRGB(217, 145, 57)
  29. if getgenv().mode == "Summer" then
  30. c.TintColor = Color3.fromRGB(255, 220, 148)
  31. elseif getgenv().mode == "Autumn" then
  32. c.TintColor = Color3.fromRGB(217, 145, 57)
  33. else
  34. warn("No mode selected!")
  35. print("Please select a mode")
  36. b:Destroy()
  37. c:Destroy()
  38. end
  39. local d = Instance.new("DepthOfFieldEffect", a)
  40. d.Enabled = true
  41. d.FarIntensity = 0.077
  42. d.FocusDistance = 21.54
  43. d.InFocusRadius = 20.77
  44. d.NearIntensity = 0.277
  45. local e = Instance.new("ColorCorrectionEffect", a)
  46. e.Brightness = 0
  47. e.Contrast = -0.07
  48. e.Saturation = 0
  49. e.Enabled = true
  50. e.TintColor = Color3.fromRGB(255, 247, 239)
  51. local e2 = Instance.new("ColorCorrectionEffect", a)
  52. e2.Brightness = 0.2
  53. e2.Contrast = 0.45
  54. e2.Saturation = -0.1
  55. e2.Enabled = true
  56. e2.TintColor = Color3.fromRGB(255, 255, 255)
  57. local s = Instance.new("SunRaysEffect", a)
  58. s.Enabled = true
  59. s.Intensity = 0.01
  60. s.Spread = 0.146
  61.  
  62. local camera = workspace.CurrentCamera
  63. local blurAmount = 10
  64. local blurAmplifier = 5
  65. local lastVector = camera.CFrame.LookVector
  66.  
  67. local motionBlur = Instance.new("BlurEffect", camera)
  68.  
  69. local runService = game:GetService("RunService")
  70.  
  71. workspace.Changed:Connect(function(property)
  72. if property == "CurrentCamera" then
  73. print("Changed")
  74. local camera = workspace.CurrentCamera
  75. if motionBlur and motionBlur.Parent then
  76. motionBlur.Parent = camera
  77. else
  78. motionBlur = Instance.new("BlurEffect", camera)
  79. end
  80. end
  81. end)
  82.  
  83. runService.Heartbeat:Connect(function()
  84. if not motionBlur or motionBlur.Parent == nil then
  85. motionBlur = Instance.new("BlurEffect", camera)
  86. end
  87.  
  88. local magnitude = (camera.CFrame.LookVector - lastVector).magnitude
  89. motionBlur.Size = math.abs(magnitude)*blurAmount*blurAmplifier/2
  90. lastVector = camera.CFrame.LookVector
  91. end)
  92. print("RTX Graphics loaded \n created by HuyThePenguin#6395")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement