Could you explain a bit how your shader works, especially what the function your are using in your screenshot does ? Thank you in advance.