Use Separated Grascale Texture File for Alpha

Hi All,

I’m new to Urho, is there a way to use grascale texture file for alpha together with another RGB texture file, in one material?

Create your own technique, copy DiffAlpha.xml or whatever you need, add psdefines = “MY_CUSTOM_DEF” in alpha pass, then in shader code LitSolid.glsl:


multiply diffuse alpha with specular texture alpha, do whatever you want, for this particular case.

1 Like

Thank you, it’s very helpful, I will try that.