Esempio n. 1
0
  public void getPhoton(
      LightData data, Vector4 uv, Vector3 position, Vector3 direction, Color weight) {
    double u = uv.getX();
    double v = uv.getY();
    position.set(0, 0, 0);
    position.addAndSet(p0, (1 - u) * (1 - v));
    position.addAndSet(p1, u * (1 - v));
    position.addAndSet(p2, (1 - u) * v);
    position.addAndSet(p3, u * v);

    // FIXME: set direction from remaining two parameters

    weight.set(color);
  }
Esempio n. 2
0
 @Override
 public void genTexCoords(IntersectionResult result, Vector4 uvstcoords) {
   uvstcoords.set(0, 0, 0, 0);
 }