From 79204b0052289f69930965b8cd15acc2b5e4d0cb Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Sat, 30 Apr 2022 01:45:05 +1200 Subject: [PATCH] Fix compatibility mode singularity shader (#7856) --- Resources/Textures/Shaders/singularity.swsl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Resources/Textures/Shaders/singularity.swsl b/Resources/Textures/Shaders/singularity.swsl index 128e286b66..609a4b3b10 100644 --- a/Resources/Textures/Shaders/singularity.swsl +++ b/Resources/Textures/Shaders/singularity.swsl @@ -3,7 +3,7 @@ uniform sampler2D SCREEN_TEXTURE; uniform highp vec2 renderScale; uniform highp float maxDistance; -uniform int count; +uniform lowp int count; uniform highp float[5] falloffPower; uniform highp float[5] intensity; @@ -30,9 +30,9 @@ void fragment() { // avoids long-range single-pixel shifts that are noticeable when leaving PVS. if (distance >= maxDistance) { - deformation = 0; + deformation = 0.0; } else { - deformation *= (1 - pow(distance/maxDistance, 4)); + deformation *= (1.0 - pow(distance/maxDistance, 4.0)); } if(deformation > 0.8)