Shaders

 

Iridescent/ stencil shader

The Seven of Swords tarot card. This shader uses an iridescent effect to simulate a shiny/ foil collectable card. The irridescent effect can be masked to different parts of the card, in this example the effect is masked so it only affects the swords. It also uses a stencil effect to give a sense of depth in the card, as if the card is a portal to another world.

You can see a breakdown of how I achieved this effect here.


Rotation gif of shader

Offset outline & frame jitter

This shader imitates an animation made with offset printing or pencil drawing.

  • Vertices wobble at a customisable framerate.

  • Outline is offset to acchieve an offset printing effect

  • Uses blue noise to give edges a pencil/ pastel effect.

Shader close up gif

Premium Dice shader - Yahtzee with buddies

I wrote this shader for use on the premium dice in Yahtzee with buddies. It was for use on mobile platforms and our target platforms included a lot of low power devices. So we needed a shader that not only looked great but also performed extremely well on low end devices

Features include:

  • Normal map

  • Specular

  • Emissive

  • The ability to mask areas of the mesh and reduce their alpha at runtime (for example, after the dice are rolled, the edges, or any masked part of the dice, can be faded out at runtime to avoid overlapping)

This was all achieved with 3 textures. There is a diffuse for the main texture and a normal map. The specular, emissive and alpha mask are all included in one RGB texture.

Dragon HD Dice

Butterfly HD Dice