Tag Archives: CG

Unity Shadertoys (a.k.a Converting GLSL shaders to Cg/HLSL)

If you’ve tried dabbling with shaders at all, you’ve probably come across ShaderToy – an online shader showcase with some pretty amazing examples of what’s possible in a few lines of shader code, inspired greatly by classic demoscene coding. Here’s … Continue reading

Posted in Game Dev | Tagged , , , , , | 5 Comments

Adding Shadows to a Unity Vertex/Fragment Shader in 7 Easy Steps

This was a question asked on the Unity Forums recently, so I thought I’d just write up the answer here. Unity provides its own unique brand of “surface shaders”, which make dealing with lighting and shadows relatively simple. But there … Continue reading

Posted in Game Dev | Tagged , , , | 3 Comments

Animal Crossing Curved World Shader

Continuing the theme of my last post, I thought I’d write another shader – this time to mimic the cylindrical rolloff effect of distant objects seen in, amongst others, the “Animal Crossing” series. Rather than appearing on a flat plane, … Continue reading

Posted in Game Dev | Tagged , , , | 17 Comments

Super Mario Galaxy “Reveal Hidden Platforms” CG Shader

I’m enjoying playing through my old Nintendo Wii titles with my six-year old son – he’s into Super Mario Galaxy, but I have to help him with the tricky levels (naturally, I’m happy to oblige!).  One such level is in … Continue reading

Posted in Game Dev | Tagged , , , | 2 Comments