Simple Light Leak Shader

  • Posts: 137
1 year 7 months ago - 1 year 7 months ago #1 by TreyM
This is my first shader, so go easy. I'm no pro. What this shader is doing is emulating the effect of light leaks from a cheap camera/lens. It uses 6 textures which are then rotated and flipped to give 12 total variations.

You can adjust the width of the beam, the hue, and the overall intensity/transparency of the effect.

The textures are not the best quality, but I was trying to keep the file size small. If requested I can make some higher quality textures.







Shader with textures: Mediafire link


Shader code:
Warning: Spoiler! [ Click to expand ]
The following user(s) said Thank You: Wicked Sick, piltrafus, WalterDasTrevas, Ryukou36, GP-Unity, Rudy102, AssassinsDecree, 8qX6a6mQhWSUBycMHgr7wgXCoTATys

Please Log in or Create an account to join the conversation.

  • Posts: 47
1 year 7 months ago #2 by Deathmedic
looks good, though it's a bit to static I think, if it reacted to brightness it would be great.

Please Log in or Create an account to join the conversation.

  • Posts: 137
1 year 7 months ago #3 by TreyM
It's not meant for gameplay. It's meant for static screenshots. In the real world, light leaks are not static images, so this is not designed to work for moving imagery.

Please Log in or Create an account to join the conversation.