예제 #1
0
 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;
 }
예제 #2
0
 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);
 }
예제 #3
0
 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));
 }
예제 #4
0
 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);
 }
예제 #5
0
 public abstract Spectrum SampleL(Point p, float pEpsilon, LightSample ls,
                                  float time, out Vector wi, out float pdf, out VisibilityTester vis);
예제 #6
0
 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();
 }
예제 #7
0
파일: Light.cs 프로젝트: modulexcite/aether
 public abstract Spectrum SampleL(Point p, float pEpsilon, LightSample ls,
     float time, out Vector wi, out float pdf, out VisibilityTester vis);
예제 #8
0
 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();
 }