if you're using ports/gyts exporter, in blender, enable transparency on the materials/material nodes you want to be transparent and set its opacity as you wish. note that any mesh objects with a transparent material will not cast shadows - if you want only parts of your hat to be transparent/not cast shadows, use multiple mesh objects.