Ejemplo n.º 1
0
 public void read(JmeImporter im) throws IOException {
   InputCapsule ic = im.getCapsule(this);
   leftIndex = ic.readInt("left_index", 0);
   rightIndex = ic.readInt("right_index", 0);
   leftPlane = ic.readFloat("left_plane", 0);
   rightPlane = ic.readFloat("right_plane", 0);
   axis = ic.readInt("axis", 0);
   left = (BIHNode) ic.readSavable("left_node", null);
   right = (BIHNode) ic.readSavable("right_node", null);
 }
Ejemplo n.º 2
0
 public void read(JmeImporter im) throws IOException {
   InputCapsule ic = im.getCapsule(this);
   numSamples = ic.readInt("numSamples", 0);
   filters = ic.readSavableArrayList("filters", null);
   for (Filter filter : filters) {
     filter.setProcessor(this);
     setFilterState(filter, filter.isEnabled());
   }
   assetManager = im.getAssetManager();
 }