Exemplo n.º 1
0
  public void writeObject(DataOutput out) throws IOException {
    super.writeObject(out);
    Vector3f dir = new Vector3f();
    ((SpotLight) node).getDirection(dir);
    control.writeVector3f(out, dir);

    out.writeFloat(((SpotLight) node).getSpreadAngle());
    out.writeFloat(((SpotLight) node).getConcentration());
  }
Exemplo n.º 2
0
 public void readObject(DataInput in) throws IOException {
   super.readObject(in);
   ((SpotLight) node).setDirection(control.readVector3f(in));
   ((SpotLight) node).setSpreadAngle(in.readFloat());
   ((SpotLight) node).setConcentration(in.readFloat());
 }