I have a project where i need to make a render texture out of a spine element. it works fine but since the workaround with superPNG and the alpha channel is obsolete (in order to get no black borders because of the premultiply thing) … i was wondering if there is some settings in how to render the image in order to not show the black border then in the rendertexture.
it’s a little bit confusing but maybe @yaustar you know something.
Oh I see, you are using a render texture for the source texture and getting alpha fringing. And since it’s a render texture, you can’t use the workaround of extruding the edge colour.
Don’t have good answer off the top of my head beyond multiple renders onto the source texture with small offsets to create a bigger ‘edge’
Maybe the PlayCanvas team has better ideas (@mvaligursky ?)
Hi, thanks for your help. I’m working with Slapstick on this problem and am trying to implement it atm.
I’m having trouble grasping how to apply this shader chunk to our current setup. What we do right now is we create a Texture, then create a RenderTarget with it and set it on our render camera. Now we can use the same texture and set it on our ImageElement to display it in our UI.
it also allocates another texture (same dimensions) and render target, and renders to it in this function:
it’s bit more complicated as it runs multiple passes to apply this and other filter multiple times, but basically this is the code part, where it assigns the source texture to be processed, and executes rendering to the other RT