Advertisement
kill21_2

1qlua ГРФИКА

May 17th, 2025
2,647
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.79 KB | None | 0 0
  1. local Fluent = loadstring(game:HttpGet("https://github.com/dawid-scripts/Fluent/releases/latest/download/main.lua"))()
  2. local SaveManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/SaveManager.lua"))()
  3. local InterfaceManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/InterfaceManager.lua"))()
  4.  
  5. local Window = Fluent:CreateWindow({
  6. Title = "1qlua графика",
  7. SubTitle = "графика от 1qlua V1.1",
  8. TabWidth = 160,
  9. Size = UDim2.fromOffset(600, 500),
  10. Acrylic = true,
  11. Theme = "Dark",
  12. MinimizeKey = Enum.KeyCode.LeftControl
  13. })
  14.  
  15. local Tabs = {
  16. Graphics = Window:AddTab({ Title = "графика", Icon = "monitor" }),
  17. Settings = Window:AddTab({ Title = "Settings", Icon = "settings" })
  18. }
  19.  
  20. local Options = Fluent.Options
  21.  
  22. local GraphicsEnhancer = {
  23. CurrentSettings = {
  24. Enabled = true,
  25. Quality = "High",
  26.  
  27. Bloom = {
  28. Enabled = true,
  29. Intensity = 0.85,
  30. Size = 28,
  31. Threshold = 0.75
  32. },
  33.  
  34. ColorCorrection = {
  35. Enabled = true,
  36. Brightness = 0.12,
  37. Contrast = 0.25,
  38. Saturation = 0.15,
  39. TintColor = Color3.fromRGB(255, 224, 224)
  40. },
  41.  
  42. DepthOfField = {
  43. Enabled = false,
  44. FarIntensity = 0.35,
  45. FocusDistance = 12,
  46. InFocusRadius = 18,
  47. NearIntensity = 0.55
  48. },
  49.  
  50. SunRays = {
  51. Enabled = true,
  52. Intensity = 0.25,
  53. Spread = 0.9
  54. },
  55.  
  56. Atmosphere = {
  57. Enabled = true,
  58. Density = 0.3,
  59. Offset = 0.25,
  60. Color = Color3.fromRGB(200, 220, 255),
  61. Decay = Color3.fromRGB(255, 180, 150),
  62. Haze = 0.1
  63. },
  64.  
  65. Lighting = {
  66. GlobalShadows = true,
  67. Brightness = 2.1,
  68. OutdoorAmbient = Color3.fromRGB(135, 135, 135),
  69. ClockTime = 7.4,
  70. Latitude = 45.5,
  71. Exposure = 0.28,
  72. ShadowSoftness = 0.2,
  73. FogEnabled = true,
  74. FogStart = 100,
  75. FogEnd = 500
  76. }
  77. }
  78. }
  79.  
  80. function GraphicsEnhancer.applySettings()
  81. if not GraphicsEnhancer.CurrentSettings.Enabled then return end
  82.  
  83. local lighting = game:GetService("Lighting")
  84.  
  85. -- Clear existing effects safely
  86. for _, effect in ipairs(lighting:GetChildren()) do
  87. if effect:IsA("PostEffect") or effect:IsA("Atmosphere") then
  88. effect:Destroy()
  89. end
  90. end
  91.  
  92. -- Apply quality presets
  93. local quality = GraphicsEnhancer.CurrentSettings.Quality
  94. if quality == "Low" then
  95. GraphicsEnhancer.CurrentSettings.Bloom.Enabled = false
  96. GraphicsEnhancer.CurrentSettings.DepthOfField.Enabled = false
  97. GraphicsEnhancer.CurrentSettings.SunRays.Enabled = false
  98. elseif quality == "Medium" then
  99. GraphicsEnhancer.CurrentSettings.Bloom.Intensity = 0.7
  100. GraphicsEnhancer.CurrentSettings.Bloom.Size = 24
  101. elseif quality == "Ultra" then
  102. GraphicsEnhancer.CurrentSettings.Bloom.Intensity = 0.95
  103. GraphicsEnhancer.CurrentSettings.Bloom.Size = 32
  104. GraphicsEnhancer.CurrentSettings.DepthOfField.Enabled = true
  105. end
  106.  
  107. -- Create effects with proper parenting
  108. if GraphicsEnhancer.CurrentSettings.Bloom.Enabled then
  109. local bloom = Instance.new("BloomEffect", lighting)
  110. bloom.Intensity = GraphicsEnhancer.CurrentSettings.Bloom.Intensity
  111. bloom.Size = GraphicsEnhancer.CurrentSettings.Bloom.Size
  112. bloom.Threshold = GraphicsEnhancer.CurrentSettings.Bloom.Threshold
  113. end
  114.  
  115. if GraphicsEnhancer.CurrentSettings.ColorCorrection.Enabled then
  116. local colorCorrection = Instance.new("ColorCorrectionEffect", lighting)
  117. colorCorrection.Brightness = GraphicsEnhancer.CurrentSettings.ColorCorrection.Brightness
  118. colorCorrection.Contrast = GraphicsEnhancer.CurrentSettings.ColorCorrection.Contrast
  119. colorCorrection.Saturation = GraphicsEnhancer.CurrentSettings.ColorCorrection.Saturation
  120. colorCorrection.TintColor = GraphicsEnhancer.CurrentSettings.ColorCorrection.TintColor
  121. end
  122.  
  123. if GraphicsEnhancer.CurrentSettings.DepthOfField.Enabled then
  124. local dof = Instance.new("DepthOfFieldEffect", lighting)
  125. dof.FarIntensity = GraphicsEnhancer.CurrentSettings.DepthOfField.FarIntensity
  126. dof.FocusDistance = GraphicsEnhancer.CurrentSettings.DepthOfField.FocusDistance
  127. dof.InFocusRadius = GraphicsEnhancer.CurrentSettings.DepthOfField.InFocusRadius
  128. dof.NearIntensity = GraphicsEnhancer.CurrentSettings.DepthOfField.NearIntensity
  129. end
  130.  
  131. if GraphicsEnhancer.CurrentSettings.SunRays.Enabled then
  132. local sunRays = Instance.new("SunRaysEffect", lighting)
  133. sunRays.Intensity = GraphicsEnhancer.CurrentSettings.SunRays.Intensity
  134. sunRays.Spread = GraphicsEnhancer.CurrentSettings.SunRays.Spread
  135. end
  136.  
  137. if GraphicsEnhancer.CurrentSettings.Atmosphere.Enabled then
  138. local atmosphere = Instance.new("Atmosphere", lighting)
  139. atmosphere.Density = GraphicsEnhancer.CurrentSettings.Atmosphere.Density
  140. atmosphere.Offset = GraphicsEnhancer.CurrentSettings.Atmosphere.Offset
  141. atmosphere.Color = GraphicsEnhancer.CurrentSettings.Atmosphere.Color
  142. atmosphere.Decay = GraphicsEnhancer.CurrentSettings.Atmosphere.Decay
  143. atmosphere.Haze = GraphicsEnhancer.CurrentSettings.Atmosphere.Haze
  144. end
  145.  
  146. -- Apply lighting settings
  147. lighting.GlobalShadows = GraphicsEnhancer.CurrentSettings.Lighting.GlobalShadows
  148. lighting.Brightness = GraphicsEnhancer.CurrentSettings.Lighting.Brightness
  149. lighting.OutdoorAmbient = GraphicsEnhancer.CurrentSettings.Lighting.OutdoorAmbient
  150. lighting.ClockTime = GraphicsEnhancer.CurrentSettings.Lighting.ClockTime
  151. lighting.GeographicLatitude = GraphicsEnhancer.CurrentSettings.Lighting.Latitude
  152. lighting.ExposureCompensation = GraphicsEnhancer.CurrentSettings.Lighting.Exposure
  153. lighting.ShadowSoftness = GraphicsEnhancer.CurrentSettings.Lighting.ShadowSoftness
  154.  
  155. -- Fog settings
  156. lighting.FogStart = GraphicsEnhancer.CurrentSettings.Lighting.FogEnabled and GraphicsEnhancer.CurrentSettings.Lighting.FogStart or 0
  157. lighting.FogEnd = GraphicsEnhancer.CurrentSettings.Lighting.FogEnabled and GraphicsEnhancer.CurrentSettings.Lighting.FogEnd or 0
  158. lighting.FogColor = GraphicsEnhancer.CurrentSettings.Atmosphere.Color
  159. end
  160.  
  161. function GraphicsEnhancer.initUI()
  162. -- Main toggle
  163. Tabs.Graphics:AddToggle("GraphicsEnabled", {
  164. Title = "Включить графику",
  165. Default = GraphicsEnhancer.CurrentSettings.Enabled,
  166. Callback = function(value)
  167. GraphicsEnhancer.CurrentSettings.Enabled = value
  168. GraphicsEnhancer.applySettings()
  169. end
  170. })
  171.  
  172. -- Quality preset dropdown
  173. Tabs.Graphics:AddDropdown("QualityPreset", {
  174. Title = "Настройка качества",
  175. Values = {"Low", "Medium", "High", "Ultra"},
  176. Default = GraphicsEnhancer.CurrentSettings.Quality,
  177. Callback = function(value)
  178. GraphicsEnhancer.CurrentSettings.Quality = value
  179. GraphicsEnhancer.applySettings()
  180. end
  181. })
  182.  
  183. -- Bloom section
  184. Tabs.Graphics:AddSection("Настройки свечения")
  185.  
  186. Tabs.Graphics:AddToggle("BloomEnabled", {
  187. Title = "Включить свечение",
  188. Default = GraphicsEnhancer.CurrentSettings.Bloom.Enabled,
  189. Callback = function(value)
  190. GraphicsEnhancer.CurrentSettings.Bloom.Enabled = value
  191. GraphicsEnhancer.applySettings()
  192. end
  193. })
  194.  
  195. Tabs.Graphics:AddSlider("BloomIntensity", {
  196. Title = "Интенсивность свечения",
  197. Description = "Сила эффекта свечения",
  198. Default = GraphicsEnhancer.CurrentSettings.Bloom.Intensity * 100,
  199. Min = 0,
  200. Max = 100,
  201. Rounding = 1,
  202. Callback = function(value)
  203. GraphicsEnhancer.CurrentSettings.Bloom.Intensity = value / 100
  204. GraphicsEnhancer.applySettings()
  205. end
  206. })
  207.  
  208. Tabs.Graphics:AddSlider("BloomSize", {
  209. Title = "Размер свечения",
  210. Description = "Размер эффекта свечения",
  211. Default = GraphicsEnhancer.CurrentSettings.Bloom.Size,
  212. Min = 1,
  213. Max = 50,
  214. Rounding = 1,
  215. Callback = function(value)
  216. GraphicsEnhancer.CurrentSettings.Bloom.Size = value
  217. GraphicsEnhancer.applySettings()
  218. end
  219. })
  220.  
  221. Tabs.Graphics:AddSlider("BloomThreshold", {
  222. Title = "Порог свечения",
  223. Description = "Уровень яркости для появления свечения",
  224. Default = GraphicsEnhancer.CurrentSettings.Bloom.Threshold * 100,
  225. Min = 0,
  226. Max = 100,
  227. Rounding = 1,
  228. Callback = function(value)
  229. GraphicsEnhancer.CurrentSettings.Bloom.Threshold = value / 100
  230. GraphicsEnhancer.applySettings()
  231. end
  232. })
  233.  
  234. -- Color correction section
  235. Tabs.Graphics:AddSection("Настройки цвета")
  236.  
  237. Tabs.Graphics:AddToggle("ColorCorrectionEnabled", {
  238. Title = "Включить коррекцию цвета",
  239. Default = GraphicsEnhancer.CurrentSettings.ColorCorrection.Enabled,
  240. Callback = function(value)
  241. GraphicsEnhancer.CurrentSettings.ColorCorrection.Enabled = value
  242. GraphicsEnhancer.applySettings()
  243. end
  244. })
  245.  
  246. Tabs.Graphics:AddSlider("Brightness", {
  247. Title = "Яркость",
  248. Default = (GraphicsEnhancer.CurrentSettings.ColorCorrection.Brightness + 1) * 50,
  249. Min = 0,
  250. Max = 100,
  251. Rounding = 1,
  252. Callback = function(value)
  253. GraphicsEnhancer.CurrentSettings.ColorCorrection.Brightness = (value / 50) - 1
  254. GraphicsEnhancer.applySettings()
  255. end
  256. })
  257.  
  258. Tabs.Graphics:AddSlider("Contrast", {
  259. Title = "Контраст",
  260. Default = (GraphicsEnhancer.CurrentSettings.ColorCorrection.Contrast + 1) * 50,
  261. Min = 0,
  262. Max = 100,
  263. Rounding = 1,
  264. Callback = function(value)
  265. GraphicsEnhancer.CurrentSettings.ColorCorrection.Contrast = (value / 50) - 1
  266. GraphicsEnhancer.applySettings()
  267. end
  268. })
  269.  
  270. Tabs.Graphics:AddSlider("Saturation", {
  271. Title = "Насыщенность",
  272. Default = (GraphicsEnhancer.CurrentSettings.ColorCorrection.Saturation + 1) * 50,
  273. Min = 0,
  274. Max = 100,
  275. Rounding = 1,
  276. Callback = function(value)
  277. GraphicsEnhancer.CurrentSettings.ColorCorrection.Saturation = (value / 50) - 1
  278. GraphicsEnhancer.applySettings()
  279. end
  280. })
  281.  
  282. Tabs.Graphics:AddColorpicker("TintColor", {
  283. Title = "Цветовой оттенок",
  284. Default = GraphicsEnhancer.CurrentSettings.ColorCorrection.TintColor,
  285. Callback = function(value)
  286. GraphicsEnhancer.CurrentSettings.ColorCorrection.TintColor = value
  287. GraphicsEnhancer.applySettings()
  288. end
  289. })
  290.  
  291. -- Depth of Field section
  292. Tabs.Graphics:AddSection("Глубина резкости")
  293.  
  294. Tabs.Graphics:AddToggle("DOFEnabled", {
  295. Title = "Включить глубину резкости",
  296. Default = GraphicsEnhancer.CurrentSettings.DepthOfField.Enabled,
  297. Callback = function(value)
  298. GraphicsEnhancer.CurrentSettings.DepthOfField.Enabled = value
  299. GraphicsEnhancer.applySettings()
  300. end
  301. })
  302.  
  303. Tabs.Graphics:AddSlider("DOFFocusDistance", {
  304. Title = "Дистанция фокуса",
  305. Default = GraphicsEnhancer.CurrentSettings.DepthOfField.FocusDistance,
  306. Min = 1,
  307. Max = 100,
  308. Rounding = 1,
  309. Callback = function(value)
  310. GraphicsEnhancer.CurrentSettings.DepthOfField.FocusDistance = value
  311. GraphicsEnhancer.applySettings()
  312. end
  313. })
  314.  
  315. Tabs.Graphics:AddSlider("DOFNearIntensity", {
  316. Title = "Интенсивность ближнего размытия",
  317. Default = GraphicsEnhancer.CurrentSettings.DepthOfField.NearIntensity * 100,
  318. Min = 0,
  319. Max = 100,
  320. Rounding = 1,
  321. Callback = function(value)
  322. GraphicsEnhancer.CurrentSettings.DepthOfField.NearIntensity = value / 100
  323. GraphicsEnhancer.applySettings()
  324. end
  325. })
  326.  
  327. Tabs.Graphics:AddSlider("DOFFarIntensity", {
  328. Title = "Интенсивность дальнего размытия",
  329. Default = GraphicsEnhancer.CurrentSettings.DepthOfField.FarIntensity * 100,
  330. Min = 0,
  331. Max = 100,
  332. Rounding = 1,
  333. Callback = function(value)
  334. GraphicsEnhancer.CurrentSettings.DepthOfField.FarIntensity = value / 100
  335. GraphicsEnhancer.applySettings()
  336. end
  337. })
  338.  
  339. -- Sun Rays section
  340. Tabs.Graphics:AddSection("Солнечные лучи")
  341.  
  342. Tabs.Graphics:AddToggle("SunRaysEnabled", {
  343. Title = "Включить солнечные лучи",
  344. Default = GraphicsEnhancer.CurrentSettings.SunRays.Enabled,
  345. Callback = function(value)
  346. GraphicsEnhancer.CurrentSettings.SunRays.Enabled = value
  347. GraphicsEnhancer.applySettings()
  348. end
  349. })
  350.  
  351. Tabs.Graphics:AddSlider("SunRaysIntensity", {
  352. Title = "Интенсивность солнечных лучей",
  353. Default = GraphicsEnhancer.CurrentSettings.SunRays.Intensity * 100,
  354. Min = 0,
  355. Max = 100,
  356. Rounding = 1,
  357. Callback = function(value)
  358. GraphicsEnhancer.CurrentSettings.SunRays.Intensity = value / 100
  359. GraphicsEnhancer.applySettings()
  360. end
  361. })
  362.  
  363. Tabs.Graphics:AddSlider("SunRaysSpread", {
  364. Title = "Распространение лучей",
  365. Default = GraphicsEnhancer.CurrentSettings.SunRays.Spread * 100,
  366. Min = 1,
  367. Max = 200,
  368. Rounding = 1,
  369. Callback = function(value)
  370. GraphicsEnhancer.CurrentSettings.SunRays.Spread = value / 100
  371. GraphicsEnhancer.applySettings()
  372. end
  373. })
  374.  
  375. -- Atmosphere section
  376. Tabs.Graphics:AddSection("Атмосфера")
  377.  
  378. Tabs.Graphics:AddToggle("AtmosphereEnabled", {
  379. Title = "Включить атмосферу",
  380. Default = GraphicsEnhancer.CurrentSettings.Atmosphere.Enabled,
  381. Callback = function(value)
  382. GraphicsEnhancer.CurrentSettings.Atmosphere.Enabled = value
  383. GraphicsEnhancer.applySettings()
  384. end
  385. })
  386.  
  387. Tabs.Graphics:AddSlider("AtmosphereDensity", {
  388. Title = "Плотность атмосферы",
  389. Default = GraphicsEnhancer.CurrentSettings.Atmosphere.Density * 100,
  390. Min = 0,
  391. Max = 100,
  392. Rounding = 1,
  393. Callback = function(value)
  394. GraphicsEnhancer.CurrentSettings.Atmosphere.Density = value / 100
  395. GraphicsEnhancer.applySettings()
  396. end
  397. })
  398.  
  399. Tabs.Graphics:AddColorpicker("AtmosphereColor", {
  400. Title = "Цвет атмосферы",
  401. Default = GraphicsEnhancer.CurrentSettings.Atmosphere.Color,
  402. Callback = function(value)
  403. GraphicsEnhancer.CurrentSettings.Atmosphere.Color = value
  404. GraphicsEnhancer.applySettings()
  405. end
  406. })
  407.  
  408. -- Lighting section
  409. Tabs.Graphics:AddSection("Освещение")
  410.  
  411. Tabs.Graphics:AddSlider("TimeOfDay", {
  412. Title = "Время суток",
  413. Description = "0 = полночь, 12 = полдень, 24 = полночь",
  414. Default = GraphicsEnhancer.CurrentSettings.Lighting.ClockTime,
  415. Min = 0,
  416. Max = 24,
  417. Rounding = 1,
  418. Callback = function(value)
  419. GraphicsEnhancer.CurrentSettings.Lighting.ClockTime = value
  420. GraphicsEnhancer.applySettings()
  421. end
  422. })
  423.  
  424. Tabs.Graphics:AddSlider("Brightness", {
  425. Title = "Яркость мира",
  426. Default = GraphicsEnhancer.CurrentSettings.Lighting.Brightness * 10,
  427. Min = 0,
  428. Max = 30,
  429. Rounding = 1,
  430. Callback = function(value)
  431. GraphicsEnhancer.CurrentSettings.Lighting.Brightness = value / 10
  432. GraphicsEnhancer.applySettings()
  433. end
  434. })
  435.  
  436. Tabs.Graphics:AddToggle("FogEnabled", {
  437. Title = "Включить туман",
  438. Default = GraphicsEnhancer.CurrentSettings.Lighting.FogEnabled,
  439. Callback = function(value)
  440. GraphicsEnhancer.CurrentSettings.Lighting.FogEnabled = value
  441. GraphicsEnhancer.applySettings()
  442. end
  443. })
  444.  
  445. -- Reset button
  446. Tabs.Graphics:AddButton({
  447. Title = "Сбросить настройки",
  448. Description = "Сбросить все графические настройки к значениям по умолчанию",
  449. Callback = function()
  450. GraphicsEnhancer.CurrentSettings = {
  451. Enabled = true,
  452. Quality = "High",
  453. Bloom = {
  454. Enabled = true,
  455. Intensity = 0.85,
  456. Size = 28,
  457. Threshold = 0.75
  458. },
  459. -- [rest of default settings...]
  460. }
  461. GraphicsEnhancer.applySettings()
  462. Window:Dialog({
  463. Title = "Сброс завершен",
  464. Content = "Все настройки были сброшены к значениям по умолчанию.",
  465. Buttons = {
  466. {
  467. Title = "OK",
  468. Callback = function() end
  469. }
  470. }
  471. })
  472. end
  473. })
  474. end
  475.  
  476. -- Initialize save system
  477. SaveManager:SetLibrary(Fluent)
  478. InterfaceManager:SetLibrary(Fluent)
  479. SaveManager:IgnoreThemeSettings()
  480. InterfaceManager:SetFolder("GraphicsEnhancer")
  481. SaveManager:SetFolder("GraphicsEnhancer/configs")
  482. InterfaceManager:BuildInterfaceSection(Tabs.Settings)
  483. SaveManager:BuildConfigSection(Tabs.Settings)
  484.  
  485. -- First-time setup
  486. GraphicsEnhancer.applySettings()
  487. GraphicsEnhancer.initUI()
  488.  
  489. Window:SelectTab(1)
  490.  
  491. Fluent:Notify({
  492. Title = "Улучшение графики от 1qlua",
  493. Content = "Панель управления графикой успешно загружена!",
  494. Duration = 5
  495. })
  496.  
  497. -- Load saved config
  498. SaveManager:LoadAutoloadConfig()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement