mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-10 12:34:06 +01:00
- [Threshold] Fix threshold inclusive range (which cause black pixel to stay black.)
This commit is contained in:
parent
2a5bcb6482
commit
25b1a9954b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user