|
@@ -126,6 +126,10 @@
|
|
|
|
|
|
public render(useCameraPostProcess?: boolean, dumpForDebug?: boolean) {
|
|
public render(useCameraPostProcess?: boolean, dumpForDebug?: boolean) {
|
|
var scene = this.getScene();
|
|
var scene = this.getScene();
|
|
|
|
+
|
|
|
|
+ if (this.activeCamera !== scene.activeCamera) {
|
|
|
|
+ scene.setTransformMatrix(this.activeCamera.getViewMatrix(), this.activeCamera.getProjectionMatrix(true));
|
|
|
|
+ }
|
|
|
|
|
|
if (this._waitingRenderList) {
|
|
if (this._waitingRenderList) {
|
|
this.renderList = [];
|
|
this.renderList = [];
|
|
@@ -179,6 +183,10 @@
|
|
if (this.onAfterUnbind) {
|
|
if (this.onAfterUnbind) {
|
|
this.onAfterUnbind();
|
|
this.onAfterUnbind();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if (this.activeCamera !== scene.activeCamera) {
|
|
|
|
+ scene.setTransformMatrix(scene.activeCamera.getViewMatrix(), scene.activeCamera.getProjectionMatrix(true));
|
|
|
|
+ }
|
|
|
|
|
|
scene.resetCachedMaterial();
|
|
scene.resetCachedMaterial();
|
|
}
|
|
}
|
|
@@ -276,4 +284,4 @@
|
|
return serializationObject;
|
|
return serializationObject;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-}
|
|
|
|
|
|
+}
|