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 Classic Chat / Shader alpha mask degrades

Author
Message
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 27th Nov 2017 20:40 Edited at: 27th Nov 2017 20:42
I am very very very very very very very new to shaders. What i am trying to do i simple copy a mask from one image to another.
My shader looks like this and i'm rendering to a quad;


My problem is if i copy the mask from imageA to imageB and then imageB to imageC and ImageC to ImageD etc the alpha mask degrades.

This is my initial image



And this is the image after a few iterations (Notice how the edges are all fuzzy)

Attachments

Login to view attachments
janbo
16
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 28th Nov 2017 12:23
Sound like linear interpolation...not sure but try to set the image min and mag filter ?
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 28th Nov 2017 19:51
Thank you. I will give that a try

Login to post a reply

Server time is: 2024-11-24 06:53:44
Your offset time is: 2024-11-24 06:53:44