Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Apply antialiasing in certain area of the screen

  1. #1
    Newbie Newbie
    Join Date
    Nov 2017

    Apply antialiasing in certain area of the screen

    Hi guys,

    I'm trying to figure out how to apply antialiasing in certain areas of the screen.
    For example, if I have a star-shaped mask, how can I apply antialiasing in only that star-shaped area?


  2. #2
    Senior Member OpenGL Lord
    Join Date
    May 2009
    Multisample antialiasing cannot be done on an arbitrary section of an image. A multisample resolve operation resolves the whole image (or at least, a rectangle of it).

    However, pseudo-antialiasing techniques like FXAA and the like can be made to work over an arbitrary area. You'd just use a stencil mask to prevent writes to the areas you don't want "antialiased".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts