]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fixes drug shader in compatibility mode FOR REAL THIS TIME (#22903)
authordeathride58 <deathride58@users.noreply.github.com>
Sat, 23 Dec 2023 22:27:46 +0000 (17:27 -0500)
committerGitHub <noreply@github.com>
Sat, 23 Dec 2023 22:27:46 +0000 (14:27 -0800)
fixes drug shader FOR REAL THIS TIME

Resources/Textures/Shaders/rainbow.swsl

index 7a1009eaa68ab510f1be2ab795030210c9cf7069..85c984ee12493c05198c7974be58e003572b9eef 100644 (file)
@@ -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