Expose ViewPorts
This commit allows EnvironmentCamera users to access the ViewPorts used for rendering the snapshots. This allows incorporating screenspace and other SceneProcessor-based effects into the snapshots as well as the scene geometry.
This commit is contained in:
parent
0252c1b623
commit
0aa50a0f15
@ -249,6 +249,15 @@ public class EnvironmentCamera extends BaseAppState {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns an array of the 6 ViewPorts used to capture the snapshot.
|
||||||
|
* Note that this will be null until after initialize() is called.
|
||||||
|
* @return array of ViewPorts
|
||||||
|
*/
|
||||||
|
public ViewPort[] getViewPorts(){
|
||||||
|
return viewports;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void initialize(Application app) {
|
protected void initialize(Application app) {
|
||||||
this.backGroundColor = app.getViewPort().getBackgroundColor();
|
this.backGroundColor = app.getViewPort().getBackgroundColor();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user