From 3addd3e32c3d9e30ddc3ae8d1f72452d15941301 Mon Sep 17 00:00:00 2001 From: deathride58 Date: Sat, 23 Dec 2023 17:27:46 -0500 Subject: [PATCH] fixes drug shader in compatibility mode FOR REAL THIS TIME (#22903) fixes drug shader FOR REAL THIS TIME --- Resources/Textures/Shaders/rainbow.swsl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Resources/Textures/Shaders/rainbow.swsl b/Resources/Textures/Shaders/rainbow.swsl index 7a1009eaa6..85c984ee12 100644 --- a/Resources/Textures/Shaders/rainbow.swsl +++ b/Resources/Textures/Shaders/rainbow.swsl @@ -5,12 +5,12 @@ const highp float TimeScale = 0.15; const highp float DistortionScale = 0.02; // how strongly to warp the screen const highp float NoiseScale = 4.0; // scale of the random noise const highp float MaxColorMix = 0.05; // rainbow effect strength. at 1.0, you wont be able to see the screen anymore -const highp float BaseColorMult = 8; // multiplier of the underlying screen texture for the rainbow effect +const highp float BaseColorMult = 8.0; // multiplier of the underlying screen texture for the rainbow effect const highp float BaseColorPow = 0.8; // exponent for the rainbow effect's -const highp float CenterRadius = 200; // radius of the gradient used to tone down the distortion effect +const highp float CenterRadius = 200.0; // radius of the gradient used to tone down the distortion effect const highp float CenterMinDist = 0.4; // minimum distance from the center of the screen for the distortion to appear at all -const highp float CenterPow = 3; // the exponent used for the distortion center -const highp float CenterColorRadius = 250; // radius of the gradient used to tone down the color effect +const highp float CenterPow = 3.0; // the exponent used for the distortion center +const highp float CenterColorRadius = 250.0; // radius of the gradient used to tone down the color effect const highp float CenterColorMinDist = 0.2; // minimum distance from the center of the screen for the color to appear at all const highp float CenterColorPow = 1.25; // the exponent used for the color's center -- 2.51.2