public override Spectrum SampleL(Point p, float pEpsilon, LightSample ls, float time, out Vector wi, out float pdf, out VisibilityTester vis) { wi = _direction; pdf = 1.0f; vis = new VisibilityTester(p, pEpsilon, wi, time); return _radiance; }
public override Spectrum SampleL( Point p, float pEpsilon, LightSample ls, float time, out Vector wi, out float pdf, out VisibilityTester vis) { wi = Vector.Normalize(_lightPosition - p); pdf = 1.0f; vis = new VisibilityTester(p, pEpsilon, _lightPosition, 0.0f, time); return _intensity / Point.DistanceSquared(_lightPosition, p); }
public override Spectrum SampleL( Point p, float pEpsilon, LightSample ls, float time, out Vector wi, out float pdf, out VisibilityTester vis) { wi = Vector.Normalize(_lightPosition - p); pdf = 1.0f; vis = new VisibilityTester(p, pEpsilon, _lightPosition, 0.0f, time); return(_intensity / Point.DistanceSquared(_lightPosition, p)); }
public override Spectrum SampleL(Point p, float pEpsilon, LightSample ls, float time, out Vector wi, out float pdf, out VisibilityTester vis) { wi = _direction; pdf = 1.0f; vis = new VisibilityTester(p, pEpsilon, wi, time); return(_radiance); }
public abstract Spectrum SampleL(Point p, float pEpsilon, LightSample ls, float time, out Vector wi, out float pdf, out VisibilityTester vis);
public override Spectrum SampleL(Point p, float pEpsilon, LightSample ls, float time, out Vector wi, out float pdf, out VisibilityTester vis) { throw new System.NotImplementedException(); }