public static void tagGlobal(Spatial s) {
        if (s instanceof Node) {
            Node n = (Node) s;
            for (Spatial sx : n.getChildren()) {
                tagGlobal(sx);
            }
        } else if (s instanceof Geometry) {
            s.setUserData("tags.env", true);
        }
    }
Tags the specified spatial as part of the environment for every EnvironmentProbeControl.
Only tagged spatials will be rendered in the environment map.

@param s
           the spatial
jme3-core/src/main/java/com/jme3/environment/EnvironmentProbeControl.java