I had to Mix two images with the OR operation (thanks, i didn't know that I could write "c1 OR c2") because I had to show the two views of a stereo-camera in only one screen! This is the problem!
Yes, it could be written out of the function but since the 2 images change every frame, I must write the ReadPixelFast inside the main loop, and so I cant get any speed improvement...
Otherwise I can texture 2 sprites (with alpha=0.5) with the images and then render them, but I dont know how far must they be from the camera, in order to render them in 1:1 scale factor. I should try with Orthographic Projection... mmh... let's try!
Yes, it could be written out of the function but since the 2 images change every frame, I must write the ReadPixelFast inside the main loop, and so I cant get any speed improvement...
Otherwise I can texture 2 sprites (with alpha=0.5) with the images and then render them, but I dont know how far must they be from the camera, in order to render them in 1:1 scale factor. I should try with Orthographic Projection... mmh... let's try!