Not logged inOpenClonk Forum
Up Topic Custom OC Silhouette Enhancement Shader ('Ghost-Shader')

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to DaFatBrainbug
So while playing around with my edge detection shader (you can expect it soon), I came across this nice little effect I wanted to share.
Kinda looks like a ghost version of objects.
What it does can be read here in detail.
I could imagine this well as a special effect for powerups.

Attention: To get this effect working for a specific object, it needs the following line in the .material file:
scene_blend alpha_blend

The effect can be customized somewhat with 2 variables. The images below shows 2 different settings for those.
Also this can be added at runtime with AddFragmentShader. :)

This shader is not fine-tuned, I might do that at another point.
To install, attatch the code to your ObjectShader.glsl.

Obviously there are objects where the effect looks horrible. But for some it looks really nice.
I might develop this shader more when I work on my edge detection shader.

Have fun with it!



I hereby license the file silhouette_enhancement.txt under the CC-BY license

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill