Java Code Examples for com.jme3.renderer.ViewPort#getScenes()
The following examples show how to use
com.jme3.renderer.ViewPort#getScenes() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TranslucentBucketFilter.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 5 votes |
private void initSoftParticles(ViewPort vp, boolean enabledSP) { if (depthTexture != null) { for (Spatial scene : vp.getScenes()) { makeSoftParticleEmitter(scene, enabledSP && enabled); } } }
Example 2
Source File: TranslucentBucketFilter.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 5 votes |
private void initSoftParticles(ViewPort vp, boolean enabledSP) { if (depthTexture != null) { for (Spatial scene : vp.getScenes()) { makeSoftParticleEmitter(scene, enabledSP && enabled); } } }
Example 3
Source File: PickEventSession.java From Lemur with BSD 3-Clause "New" or "Revised" License | 4 votes |
public void addCollisionRoot( ViewPort viewPort, String layer ) { for( Spatial s : viewPort.getScenes() ) { addCollisionRoot(s, viewPort, layer); } }
Example 4
Source File: PickEventSession.java From Lemur with BSD 3-Clause "New" or "Revised" License | 4 votes |
public void removeCollisionRoot( ViewPort viewPort ) { for( Spatial s : viewPort.getScenes() ) { removeCollisionRoot(s); } }