base icon indicating copy to clipboard operation
base copied to clipboard

Ability for UI to use external masks

Open qreeves opened this issue 4 years ago • 0 comments

Textures can generate an alpha mask which can be used by the UI for hit detection, but these can't be used on elements other than the originating texture. Add the ability to reference a separate mask for both rendering and hit detection to any UI element.

Requirements:

  • HUD shader that takes a second texture to use a mask while rendering.
  • UI code to check the mask of a separate texture for hit detection.
  • Ability for mask checks to be scaled to the dimensions of the element.

qreeves avatar Jul 15 '21 05:07 qreeves