Hot answers tagged


A possible solution for your problem might be using stencil testing. Here is a link that explains it. It also describes how object outlining is done. You basically need to populate the stencil buffer while rendering your object. Then you render your object slightly scaled up a second time while using a simple single color fragment shader. During the second ...

Only top voted, non community-wiki answers of a minimum length are eligible