Create material function with transparency

Hi everyone!
Can someone please help me to create a blend material for two materials where one of them is glass? I’m trying this using material functions, but in my material function I can’t control the opacity like in standard materials, so it renders black!

I’d like to create something like this:

Here is my trial:
My base material is glass (shown black in this case):

This is the second material:

And the blend (The glass render as black, not transparent):

Well Simply put the problem you seem to be facing is that your blend mode is set to opaque rather than translucent. You then have to set Lighting mode in the translucency section to Surface Translucency volume or Forward Shading.

With all that said using a full transparent material for just a transparent section is a bad idea. transparency in UE4 is both expensive and doesn’t produce great results for solid objects, such as a car.

You are better off using two material slots, one for solid parts and one for glass.
But another question to ask is does the glass need to be see thru? For example if you want something like the tail light to be glass, does that part need to be translucent when you can just fake it with a clear coat and height offset for the inner parts of the light. Stuff like windows which need to be translucent should really be their own material, instead of being a part of one big car material.

It worked! I changed the blend mode to translucent and the lighting mode to foward shading!

I’m pretty new to UE, so at the moment I’m just studying and experimenting about materials. I’ll try to do your suggestion and make a new material with clear coat.

Thanks for your answer! Helped a lot!