removed unused Li feature from Subsurface
parent
a16795e910
commit
29e713acf4
|
@ -28,14 +28,7 @@ public:
|
|||
inline const std::vector<Shape *> getShapes() const { return m_shapes; }
|
||||
|
||||
/// Get the exitant radiance for a point on the surface
|
||||
virtual Spectrum Lo(const Intersection &its,
|
||||
const Vector &d) const = 0;
|
||||
|
||||
/**
|
||||
* Query the the readiance function inside the object. Requires a surface
|
||||
* normal used to create a slab approximation
|
||||
*/
|
||||
virtual Spectrum Li(const Ray &ray, const Normal &n) const = 0;
|
||||
virtual Spectrum Lo(const Intersection &its, const Vector &d) const = 0;
|
||||
|
||||
/// Serialize this subsurface integrator to a binary data stream
|
||||
void serialize(Stream *stream, InstanceManager *manager) const;
|
||||
|
|
|
@ -231,16 +231,6 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
Spectrum Li(const Ray &ray, const Normal &n) const {
|
||||
if (!m_ready)
|
||||
return Spectrum(0.0f);
|
||||
RadianceQuery rQuery(m_zr, m_zv, m_sigmaTr, m_mfp, m_D, m_Fdt, ray.o, n);
|
||||
m_octree->execute(rQuery);
|
||||
Spectrum R2 = rQuery.diff(-ray.d) * INV_PI;
|
||||
Spectrum R = rQuery.getRadiance(-ray.d);
|
||||
return R2;
|
||||
}
|
||||
|
||||
void configure() {
|
||||
m_sigmaSPrime = m_sigmaS * (1-m_g);
|
||||
m_sigmaTPrime = m_sigmaSPrime + m_sigmaA;
|
||||
|
|
Loading…
Reference in New Issue