/** * Set the camera that will be set on the geometry comparators * via {@link GeometryComparator#setCamera(com.jme3.renderer.Camera)}. * * @param cam Camera to use for sorting. */ public void setCamera(Camera cam){ this.comparator.setCamera(cam); }
public int compare( Geometry g1, Geometry g2 ) { float l1 = getLayer(g1); float l2 = getLayer(g2); if (l1 < l2) return -1 * bias; if (l2 < l1) return 1 * bias; return delegate.compare(g1, g2); }
/** * Set the camera that will be set on the geometry comparators * via {@link GeometryComparator#setCamera(com.jme3.renderer.Camera)}. * * @param cam Camera to use for sorting. */ public void setCamera(Camera cam){ this.comparator.setCamera(cam); }
/** * Set the camera that will be set on the geometry comparators * via {@link GeometryComparator#setCamera(com.jme3.renderer.Camera)}. * * @param cam Camera to use for sorting. */ public void setCamera(Camera cam){ this.comparator.setCamera(cam); }
public void setCamera(Camera cam) { delegate.setCamera(cam); }