Can Cascade VFX treat Transparent object as opaque when they render?

image

hi all!
just stumble upon an issue while developing personal game.
the hat the player is wearing is currently a translucent mesh.

and, I think because of this, the cascade effect(the slash effect)
is not being blocked by the hat mesh. (this is what I want)

so, is there any way this cascade effect to treat hat as opaque mesh
without chaning hat’s material?

thanks in advance!

I figured it out.
Try play with “Cusom Depth” on your problematic material’s opacity channel.
(as well as cascade materials.)