-
- CommentAuthorew_holmes
- CommentTimeJan 10th 2013 edited
I saw a similar question in the discussion forums, but I never saw an answer, so I thought I would ask it again.
I have 2 images on top of eachother. I want to use a Renderer as a mask for the foreground image, to reveal the background image.
front.addChild(renderer);
I have followed the Grass example for my renderer, which works great.
as soon as I add the renderer into the front image, it works fine, but as soon as I apply it as the mask, it no longer appears, or removes the image.
front.mask = renderer; // Failing
Is this possible? -
- CommentAuthorew_holmes
- CommentTimeJan 11th 2013
The solution:
Apply cacheAsBitmap to your renderer!
renderer.cacheAsBitmap = true;
1 to 2 of 2
