mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-03-28 14:56:22 +01:00
make pattern subtract blend mode actually subtract
This commit is contained in:
parent
9fcbdba420
commit
b2dd4db15d
1 changed files with 2 additions and 2 deletions
|
@ -51,11 +51,11 @@ vec3 blendAdd(vec3 base, vec3 blend, float opacity) {
|
|||
|
||||
// Subtract
|
||||
float blendSubtract(float base, float blend) {
|
||||
return max(base+blend-1.0,0.0);
|
||||
return max(base-blend,0.0);
|
||||
}
|
||||
|
||||
vec3 blendSubtract(vec3 base, vec3 blend) {
|
||||
return max(base+blend-vec3(1.0),vec3(0.0));
|
||||
return max(base-blend,vec3(0.0));
|
||||
}
|
||||
|
||||
vec3 blendSubtract(vec3 base, vec3 blend, float opacity) {
|
||||
|
|
Loading…
Add table
Reference in a new issue