OccludersExtractor occExt = new OccludersExtractor(viewProjMatrix, casterCount, splitBB, casterBB, splitOccluders, vars); for (Spatial scene : viewPort.getScenes()) { occExt.addOccluders(scene);
OccludersExtractor occExt = new OccludersExtractor(viewProjMatrix, casterCount, splitBB, casterBB, splitOccluders, vars); for (Spatial scene : viewPort.getScenes()) { occExt.addOccluders(scene);
/** * Check the rootScene against camera frustum and if intersects process it recursively. * The global OccludersExtractor variables need to be initialized first. * Variables are updated and used in {@link ShadowUtil#updateShadowCamera} at last. */ public int addOccluders(Spatial scene) { if ( scene != null ) process(scene); return casterCount; }
/** * Check the rootScene against camera frustum and if intersects process it recursively. * The global OccludersExtractor variables need to be initialized first. * Variables are updated and used in {@link ShadowUtil#updateShadowCamera} at last. */ public int addOccluders(Spatial scene) { if ( scene != null ) process(scene); return casterCount; }