Jump to content
  • Advertisement
Sign in to follow this  
Angelic Ice

SFML / GLSL Outline-Shader

This topic is 773 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello forum!

Do you know any proper sources where I can learn on how to do an (blurry) outline-shader for 2D sprites via GLSL?

There are quite some resources on the internet but they use different implementations, barely can judge which one is good practice and what is a terrible sin.
I read about just duplicating the sprite, colouring it to the wished solid colour and applying some sort of blur. That sounds very inefficient though, haha.
Isn't edge detection way faster?

I can see how inverting the original piece would be one way, but that probably requires duplicating again.

I never worked with GLSL/shaders before but am curious to learn one or two things via this.

Thanks for taking your time to read my thread!

Edit: Oh, this thread probably belongs in the graphics category!! Sorry! Edited by Angelic Ice

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!