Hi, I make a simple scene to test Fragment_Custom_Alpha of customMaterial, but it doesn’t work. In my thought, this should change the alpha of the sphere to 0.5.
Actually, my finally purpose is to pass one mask map to customMaterial using addUniform, and sample it in Fragment_Custom_Alpha using a customed UV. However, I haven’t even figure out how to use Fragment_Custom_Alpha right now. And it seems there doesn’t exist many informations about this in Doc.
It looks like CUSTOM_FRAGMENT_UPDATE_ALPHA is defined in the wrong part of the default fragment shader here, inside the #ifdef DIFFUSE block, so it can only be used when there’s a diffuse texture?