Skip to main content
GameDev.net gamedev.net
🔒 Locked

Oldschool effects using shaders

Started by mastermind88 Aug 23, 2012 at 5:53 AM 3 replies 1.8k views
Original Post
mastermind88
mastermind88
Hi all!
Can you post in this thread any sources of shaders for cool post effects? Though, not only oldschool but any other cool stuff smile.png

p.s> I'm talking about OpenGL ES 2.0 shaders, but other shaders would be nice too
LorenzoGatti
LorenzoGatti
You can implement more or less anything with GLSL shaders; if you want ready-made cool examples you should ask for something more specific, while if you want to reproduce something oldschool it is a straightforward reverse engineering and reimplementation task.

I don't know what you mean by "post effects", but you might find the shader-based simulation of CRT behaviour in emulators like MAME and Stella interesting.
Omae Wa Mou Shindeiru
Hodgman
Hodgman
What kind of "cool post effects" are you looking for?
mastermind88
mastermind88

What kind of "cool post effects" are you looking for?

Plasma effect, for example
Bacterius
Bacterius

Plasma effect, for example

Plasma effect is pretty trivial, it is basically a simple trigonometric (I think? can't remember what formula it is) warping of a two-dimensional space. In GLSL this would essentially translate to:
- reading the pixel coordinate for each pixel
- warping it according to the plasma formula
- reading the framebuffer at the new pixel coordinate
- write the resulting pixel to the original coordinates

One could add multisampling on top of that to avoid pixel loss and shearing due to the uneven gradient of the distortion field, but it wouldn't be oldschool anymore would it! smile.png
“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.