File tree 1 file changed +2
-0
lines changed 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -202,12 +202,14 @@ - (void)startTransition:(CCScene *)scene
202
202
_outgoingTexture = [CCRenderTexture renderTextureWithWidth: size.width height: size.height pixelFormat: _transitionPixelFormat depthStencilFormat: _transitionDepthStencilFormat];
203
203
_outgoingTexture.position = CGPointMake (size.width * 0 .5f + rect.origin .x , size.height * 0 .5f + rect.origin .y );
204
204
_outgoingTexture.contentScale /= _outgoingDownScale;
205
+ _outgoingTexture.projection = [CCDirector sharedDirector ].projectionMatrix ;
205
206
[self addChild: _outgoingTexture z: _outgoingOverIncoming];
206
207
207
208
// create texture for incoming scene
208
209
_incomingTexture = [CCRenderTexture renderTextureWithWidth: size.width height: size.height pixelFormat: _transitionPixelFormat depthStencilFormat: _transitionDepthStencilFormat];
209
210
_incomingTexture.position = CGPointMake (size.width * 0 .5f + rect.origin .x , size.height * 0 .5f + rect.origin .y );
210
211
_incomingTexture.contentScale /= _incomingDownScale;
212
+ _incomingTexture.projection = [CCDirector sharedDirector ].projectionMatrix ;
211
213
[self addChild: _incomingTexture];
212
214
213
215
// make sure scene is rendered at least once at progress 0.0
You can’t perform that action at this time.
0 commit comments