- Home /
Is it possible to create a glass shader in Unity Free?
I want to create a simple shader that will looks like you are is looking trough glass: it will get as input a texture representing current scene, then based on it will apply some distortions (my changing texture coordinates) and will then ouput the result.
Such a shader without any distortion will look exactly the same as a 100% transparent texture, the only difference here : it will be a little blurry because source is a scene capture.
I'm a not sure either this is possible to write in Unity Free, or if Pro version is needed. I do not need a full shader, only a working example to start with.
Something similar to this : http://techreport.com/r.x/source-engine/multiple-effects.jpg
Answer by tanoshimi · Oct 15, 2014 at 04:42 PM
"I want to create a simple shader" - that introduction made me chuckle. Writing shaders is one of the things a lot of people dread, and they're frequently far from simple :)
Unfortunately, the mention of the words "scene capture" pretty much means that you need a render texture, and that's a Pro only feature. Sure, there are plenty of ways of achieving a glassy material-look on an object in Unity Free, including specular highlights, static cubemap reflections, rim lighting and transparency (e.g. here), but not to portray dynamic reflections or refractions of the scene around it.
Your answer
Follow this Question
Related Questions
Light glow effect test 3 Answers
A node in a childnode? 1 Answer
Question about a good textures / terrain shader 1 Answer
volumetric light/sun shaft test 1 Answer
Smooth text disappear after erased like in old monitors. 1 Answer