Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit/AppGameKit Studio Showcase / Fast Approx. Anti-Aliasing (Plug & Play Shader)

Author
Message
Raven
19
Years of Service
User Offline
Joined: 23rd Mar 2005
Location: Hertfordshire, England
Posted: 21st Feb 2020 10:04 Edited at: 21st Feb 2020 10:06
As AppGameKit Studio (Vulkan) has no support for Anti-Aliasing right now... I just wanted to make a "Quick and Dirty" approach.
FXAA is such an approach and doesn't have much overhead.

This should be lightweight enough for Mobile Devices and does work on AGK.

Sample Code:




Attachments

Login to view attachments
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 21st Feb 2020 20:21
Nice work!
PSY
Developer
8
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 22nd Feb 2020 17:39
Hey,

that's nice. Gonna play around with that.
Thanks!!


PSY LABS Games
Coders don't die, they just gosub without return
janbo
16
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 25th Feb 2020 13:25 Edited at: 25th Feb 2020 13:41
Hey nice

May I advertise the FXAA shader I did in 2016.
It still works... in Vulkan also.
Here is it again but a bit more user friendly than before: New FXAA Shader Demo (Press space to cycle through the AA modes)

@Raven: You render the Text to the Rendertarget also, so the Text also gets AA.
I think you want text to be sharp, so change the Render to Render3D and add a Render2DFront to draw the text and sprites afterwards.
And as your code didn't compile I corrected it and added my changes:

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-23 08:18:41
Your offset time is: 2024-11-23 08:18:41