I wish to present a vertical, horizontal, diagonal right and diagonal left oriented grating texture in the same location at the same time, such that each texture has equal luminance. However, when drawing to the same location, the last texture will be the only texture visible if all have equal globalAlpha.
I am wondering what the rule is for globalAlpha such that each texture can be presented with equal luminance in the same location (so, the first texture drawn has equal luminance to the last).
For example, if I draw a vertical texture with globalAlpha=1, and in the next line of code, draw a horizontal texture in the same location, I presume the globalalpha for horizontal should be given as 0.5. That would mean that both vertical and horizontal textures are equally presented on screen.
However, what happens if I want to draw multiple (i.e. 4) textures, one on top of the other? So 4 lines of code, all using “Screen(‘DrawTexture’)”, each drawing a differently oriented grating.
What is the rule (if any) when drawing textures over one another, so that the end result is that they are all equally presented on screen?
Thanks for any help