(use case: http://i.imgur.com/mp79p5T.png over http://i.imgur.com/S22HNaU.png )
- the 2 top results are right: transparent <Image> (so native UIImage) over the rainbow (both tested using an UIImage (left) & a GLKView (right))
- the 2 bottom results are wrong: transparent GLKView over the rainbow.
the alpha seems to combine in a non linear way using a GLKView on top of anything.
currently using this formula:
objc
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
is there something wrong here?
(code https://github.com/ProjectSeptemberInc/gl-react-native/blob/424c7cf25c03a20e5b0471b5a0fc36b202811cb5/Examples/Tests/index.ios.js#L89-L115 )