Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17071

RenderTexture Half Sprite

$
0
0

@Kotaiba wrote:

Hi,
I want to RenderTexture half the node ,i don't want to use mask .

this is my code to render first half of the node i want to get the second half .

auto renderTexture = RenderTexture::create( shape->getContentSize().width/2, shape->getContentSize().height);
        renderTexture->begin();
        shape->_drawNode->visit();
        renderTexture->end();
        renderTexture->getSprite()->getTexture()->setAntiAliasTexParameters();

any one know how to render the other half ??

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17071

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>