Skip to content

Commit

Permalink
Fix using blur tool on mask
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Jan 6, 2023
1 parent 1809a8c commit 27b1b58
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Sources/arm/node/MakeBlur.hx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ class MakeBlur {
frag.write('vec3 nortan = vec3(0.0, 0.0, 0.0);');
frag.write('float height = 0.0;');
frag.write('float mat_opacity = 1.0;');
frag.write('float opacity = 0.0;');
var isMask = Context.layer.isMask();
if (isMask) {
frag.write('float opacity = 1.0;');
}
else {
frag.write('float opacity = 0.0;');
}
if (Context.material.paintEmis) {
frag.write('float emis = 0.0;');
}
Expand Down

0 comments on commit 27b1b58

Please sign in to comment.