ue4/5 glass material production (easy to understand and use)

1. Several aspects that we need to consider in the production of glass materials

        First of all, it is necessary to analyze the characteristics of the glass material. Glass is transparent and will refract. Some glass edges have special lines, and some do not.

2. Before starting to make, we need to understand a few functions, the blueprint of the material class

        The Fresnel_Function function is often used for masking to control the edge of the glass or the stroke or bright edge of the character. If you open this function, you can see the black and white two colors.

        The lerp function, which is a function that controls the strength between A and B.

        These functions can be read in detail elsewhere.

3. After analyzing the glass material, you can start making

        First create a base material, then adjust the blending mode to translucent.

        Turn on Screen Space Reflection.

        The lighting mode is Surface Translucent Volume.

        After connecting, set each one-dimensional parameter to express the strength of transparency, which is more suitable for the adjustment of sub-materials. 

Refraction is similar

 Then choose a good color tone, and other special glass points can also be adjusted by yourself, such as roughness, high gloss, and metalness.

 In order to be conspicuous, I chose green as the main color, and the following is the effect:

        

Guess you like

Origin blog.csdn.net/q244645787/article/details/126470000