I am trying to render all 3d nodes on a scene which a camera sees and pass it to a shader as uniform.
I have got problems with render texture position.
Size size = Director::getInstance()->getWinSize();
renderTexture = RenderTexture::create((int)size.width, (int)size.height);
renderTexture->retain();
renderTexture->setKeepMatrix(true);
in update method i call:
renderTexture->setPosition(getScene()->getDefaultCamera()->getPosition());
and call visit() on my 3d nodes. But result looks like render texture sees from the center of scene