Visual Effects


Index


Health Bar

Test

I made this health bar in a 48-hour Gamejam called Gamesforgood. Read more about the game here.

It has a scrolling texture and the color changes from green to red as your life depletes; it is very simple in theory and implementation but it is a practical example of actually using shaders in the real world rather than to keep in your github and put in your portfolio. Displayed above. In my portfolio.

Test


Procedural Toon Shader see on github

Star

Swaps a linear lighting function with a non-linear one for a stylized look.

A normal lighting function usually returns a linear value from 0 to 1. This implementation takes that value and uses it as the input to a custom, non-linear function set by an Animation Curve element in the Unity Engine. It allows for the creation of “steps” in the lighting, where areas of similar illumination are attributed the same value, giving it a more cartoony look.

Test


Camouflage Shader see on github

Star

Applies a camouflage texture based on a pre-defined map.

This is a very simple shader but can allow for some pretty cool customization. It takes a black/white map, with camouflage being rendered where it is white.

Test Test


Dissolve Effect see on github

Star

Makes an object progressively transparent based on a noise map.

Test


Triplanar Mapping see on github

Star

Allows for axis-based coloring and texturing, allowing, for example, to fake snow on top of an object.

Test