I have a quick question. I've been browsing through the webGL effects, and I don't see any way to create an outline. i.e. if it was applied to a layer, all objects on that layer would have an outline. Ideally, I'd be able to control the thickness, color, and alpha of that outline.
Is there any way to do this or is the effect yet to be written?
Have you looked at the toon effect? (just making sure)
It doesn't do opacity thickness or colour but I guess it would be a good place to start..
I did have a look at that. The fact that it doesn't do opacity thickness or color sort of breaks it for me, however. Also it has that posterization along with it.
Anyone else have any ideas?
sqiddster : you can try to have a layer under the current one, with all the Sprite duplicated. On that layer, you need to blur the Sprite, change the color of the blurred result, and enlarge a bit the layer (or the Sprites), to make add that outline.
If it's to slow, you can "snapshot" the game, load that snapshot in a Sprite, and apply that effect to the Sprite.
Pode, thanks! Since I use masking for this layer, that won't really work. And anyway, if I was going to go to all that effort, I might as well learn the shader language and do it myself!
I wonder if anyone would be kind enough to do an outline shader. Surely it couldn't be too difficult, and could improve the look of a lot of games.
Develop games in your browser. Powerful, performant & highly capable.