Position Based Gradient Shader

The first post to this blog and a free easy to understand shader.

For my annual local game jam PegJam2017, I decided to create a game inspired by Monument Valley. I was particularly inspired by the following level and I wanted to attempt to recreate some of the atmosphere in my jam game. The jam game “Isolation” can be found here.

The simplest way to achieve the effect of the geometry fading away into fog / background is with a shader which i will share in full at the end. What I wanted my shader to do was fade the vertices of the geometry to a new color based on its distance to the y position of 0.

Continue reading “Position Based Gradient Shader”

Position Based Gradient Shader