Extrude Texture intensity in Different masks

Mr., ¿would you please helping me with that formula?
I cannot reproduce it.