Does anyone know how to create a Glass Refraction material in Unity 5 like in this video at 10:21?
It seems like there is no default way to do something like this in Unity 5.
Does anyone know how to create a Glass Refraction material in Unity 5 like in this video at 10:21?
It seems like there is no default way to do something like this in Unity 5.
Thee should be a glass refraction shader. Just apply that to a cube and you got glass.
I was hoping to do it with Unity 5’s PBR, rather than use a legacy shader, which the glass refraction shader seems to be.
There is an example of glass refraction in Aras’ blog post about command buffers Unity Blog
Edit: The blog post just mentions blurring, I had a feeling there was a refraction example as well, maybe just check.
Edit2: Just checked the shader, this does what you want, you might be able to remove the blurring depending on the look you are after.
Hmm… I’ll try that. In the blog and README he makes note that it’s inefficient and not “production ready” for a real project, so I’m not really sure if that’s the best implementation to use though.
Well yes it’s just a sample, I didn’t read where it was inefficient, it should be more efficient than using multiple grab passes. You can use the regular grab pass one, it’s in the standard assets/effects package.