Skip to content

IconLayer mask documentation #9063

Answered by Pessimistress
am2222 asked this question in Q&A
Discussion options

You must be logged in to vote

When an icon has mask:true, it only uses the source image as a transparency mask. More specifically,

color = vec4(instanceColor.rgb, instanceColor.a * textureColor.a * opacity)

You can subclass the IconLayer to apply your own masking logic. example

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by am2222
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants