summaryrefslogtreecommitdiff
path: root/src/render/shaders
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2023-11-09 21:58:09 +0000
committerVaxry <vaxry@vaxry.net>2023-11-09 22:11:54 +0000
commit11432f69b929b8f74d7b0a2b327cef1da2462535 (patch)
treec852db5f9faa0eb2fc4a5e33257ee27d37d6ce48 /src/render/shaders
parentda6fa9cbd24fb45edf35cc51317392e18f682595 (diff)
opengl: remove unused alpha matte from shadow
Diffstat (limited to 'src/render/shaders')
-rw-r--r--src/render/shaders/Shadow.hpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/render/shaders/Shadow.hpp b/src/render/shaders/Shadow.hpp
index f9bdeb8d..2c7b07b2 100644
--- a/src/render/shaders/Shadow.hpp
+++ b/src/render/shaders/Shadow.hpp
@@ -5,9 +5,7 @@
inline const std::string FRAGSHADOW = R"#(
precision mediump float;
varying vec4 v_color;
-uniform sampler2D alphaMatte;
varying vec2 v_texcoord;
-varying vec2 v_texcoordMatte;
uniform vec2 topLeft;
uniform vec2 bottomRight;
@@ -15,7 +13,6 @@ uniform vec2 fullSize;
uniform float radius;
uniform float range;
uniform float shadowPower;
-uniform int useAlphaMatte;
float pixAlphaRoundedDistance(float distanceToCorner) {
if (distanceToCorner > radius) {
@@ -77,10 +74,6 @@ void main() {
}
}
- if (useAlphaMatte == 1) {
- pixColor[3] *= 1.0 - texture2D(alphaMatte, v_texcoordMatte)[3];
- }
-
if (pixColor[3] == 0.0) {
discard; return;
}