Tag Archives: Shader

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

Creating “Hand-Drawn” Terrain in Unity

I’ve had a few questions recently about how to apply my hand-drawn shader pack on Unity terrain. So here’s a guide (written using Unity 5, but the instructions should remain almost identical in Unity 4 save for a few menu … Continue reading

Posted in Game Dev | Tagged , , , | 1 Comment

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

Using the Stencil Buffer in Unity Free

News concerning the recent release of Unity 4.6 was largely dominated by its new UI system. However, closer inspection of the 4.6 release notes reveals some other interesting changes and improvements, including the announcement that “Stencil buffer is now available … Continue reading

Posted in Game Dev | Tagged , , | 2 Comments