#If there s no partial transparency on

1 messages · Page 1 of 1 (latest)

scarlet goblet
#

Thanks, looks like a good place to start. What do you mean by partial transparency?

round mural
# scarlet goblet Thanks, looks like a good place to start. What do you mean by partial transparen...

Was mostly referring to more transparent pixels along the edge of the tile if it's a texture sampled using billinear filtering. Using point filtering would sample the pixels without averaging it's neighbours.
Also with this stencil approach you'd probably need to include alpha clipping to discard fully transparent pixels or they'll still write to the stencil buffer. (e.g. clip(texAlpha - 0.5);)

But if these tiles are mesh based, those wouldn't be an issue though.

scarlet goblet
#

Alright, thank you. I found a shader that does something similar to what I want, and when using it there is no longer any overlap but still some fully transparent pixels in between tiles so I think you might be on to something. Will have a closer look at the sprites and at alpha clipping.

The tiles are simple sprites with point filtering. I am trying to move away from pixel art and completely new to shaders.