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

Underwater Effects

There’s lots of resources that describe techniques for realistic rendering of water surfaces. Unity comes supplied with several standard water assets, and there are some excellent descriptions of more advanced water effects at scrawkblog to generate spectacular ocean surfaces such … Continue reading

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

Glass Shader

I’ve seen a lot of posts recently from folks trying to create shaders that recreate the appearance of glass. I guess the reason is that glass is a pretty common material, but modelling its appearance is surprisingly complex – requiring … Continue reading

Posted in Game Dev | Tagged , | 5 Comments

Custom Unity Terrain Material / Shaders

I love Unity – it’s one of those environments that’s actually a pleasure to program in, but its terrain system seems somewhat lacking behind its other features, requiring quite a lot of hacks and workarounds to get desired appearance and … Continue reading

Posted in Game Dev | Tagged , , | 6 Comments