Hi,
I'm wondering if it is there a way to replace pixels when drawing to a RenderTarget (whitout considering alpha channel).
At the moment the alpha channel is used to combine color values (if two partially transparent pixels are drawn in the same place, the runtime will combine them), but it looks like there are no ways to change its behavior (I think it could be very useful if RenderTarget had the capability to change the combination function used to draw pixels),
It will be very inefficient for my application to save the previous pixels states.
Any help?
Thank you
Comments
have you tried:
source:setColorTransform(r, g, b, 1)
This may help?
thank you for your help. Unfortunately I need to replace parts of a target (smaller areas inside it) so changing the transform will apply it to the entire image.
Can you show us some sample pictures or you can try to create your own sprite based on your target: http://forum.giderosmobile.com/discussion/7670/rendertarget-probable-issue#latest
Likes: MoKaLux, antix
Thank you @hgy29 that's exactly what is was looking for.
Likes: hgy29, MoKaLux