- [Threshold] Fix threshold inclusive range (which cause black pixel to stay black.)

This commit is contained in:
Tanasart 2024-07-05 07:38:41 +07:00
parent 2a5bcb6482
commit 25b1a9954b

View File

@ -16,7 +16,7 @@ uniform int alphaThresholdUseSurf;
uniform sampler2D alphaThresholdSurf;
uniform float alphaSmooth;
float _step( in float threshold, in float val ) { return val <= threshold? 0. : 1.; }
float _step( in float threshold, in float val ) { return val < threshold? 0. : 1.; }
void main() {
float bri = brightThreshold.x;