Archive 17/01/2023.

Use Separated Grascale Texture File for Alpha

projector

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?

Bananaft

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:

#ifdef  MY_CUSTOM_DEF

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

#endif
projector

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