Opacity in material that is not masked or translucent
I am trying to create some grass geo and have textures that use opacity to cut out the grass shape on low poly geo. To get that opacity in the engine, I set the material to masked opacity. But that method generally uses the opacity mask to either set that pixel to completely seethrough or opaque depending on the threshold. This gives hard edges around where the texture opacity falls off.
I can use the opacity slot correctly when I set it to a translucent material but then I am seeing though the mesh from some angles and its not the type of shader I want anyway.
Is there a way to have a standard shader (like opaque) but have the opacity slot enabled to allow simple opacity with values in between 1 and 0 for cutting out shapes?
asked Jun 30 '14 at 08:07 AM in Rendering
Hi dokipen -
There is two things you will probably want to do to achieve the look you are going for and maintaining you opacity mask. The first is to make sure that your texture has an unmatted alpha, this is not just an applied alpha channel, but a process which multiplies up the dim values of pixels along your alpha edge to ensure the correct values get translated into the shader. There is a wonderful tutorial that Bill Kladis does which is free to view on youtube, **here**. You will also want to adjust your clipping value based on the alpha and effect for which you are going.
Masked Materials are always going to be slightly "blocky," but with the two method above you can achieve something which is much better looking in the long run.
Let me know how it comes out -
answered Jun 30 '14 at 02:13 PM
Lovecraft_K ♦♦ STAFF
As you can see some polygon render in front of others. It's most easily seen in the cube in the material editor where the polygon on the left renders in front of the one behind it on the left but the rear right polygon renders on front. Its just a freshly made material that is translucent, two sided and has slots in emissive colour and opacity
answered Jul 04 '14 at 01:13 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here