Quick glass
In this recipe we'll go over a way to generate a reasonable glass material. In reality, glass reflects the local environment, which is a tough call in a game environment. In this example we'll fake reflections, while in a later recipe we'll look at recording reflection maps from the actual scene too.
How to do it...
In the Content Browser, right-click and choose New Material. Name it Yourfolder.Material.Quickglass_mat.
In the Material PreviewMaterial properties , set the Blend Mode to BLEND_Translucent and also turn on Two Sided.
It's good to preview this kind of Material on a complex model, so highlight Packt.Mesh.Statue in the Content Browser. Right-click and choose Copy Full Name to Clipboard. In the PreviewMaterial properties , expand Material Interface and paste into the field the mesh name. Note that the eyes, which have their own Material, won't be affected, just the statue body.
In the Material Editor, hold 1 and click to add a Constant and set its R value to 0.5. Press Ctrl...