Get outline of mask

how are you generating that slope mask? can you show me the material graph?