mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-01-26 04:48:17 +01:00
- [Threshold] Fix threshold inclusive range (which cause black pixel to stay black.)
This commit is contained in:
parent
2a5bcb6482
commit
25b1a9954b
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ uniform int alphaThresholdUseSurf;
|
||||||
uniform sampler2D alphaThresholdSurf;
|
uniform sampler2D alphaThresholdSurf;
|
||||||
uniform float alphaSmooth;
|
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() {
|
void main() {
|
||||||
float bri = brightThreshold.x;
|
float bri = brightThreshold.x;
|
||||||
|
|
Loading…
Reference in a new issue