PBRT is a rendering engine widely used in the computer graphics area. This plugin adds a new 'displacement map' function based on PBRT-v3. Users can use the command console to easily add a displacement mapping to the Sphere shape, which realizes a more realistic effect.
The following is an example using PBRT to render.
The displacemnet mapping not only changes the appearance of the model, but also changes the physic model, bring a more realistic effect. Shown as below.
Intersection Test:
Bounds3f ObjectBound() const;
bool Intersect(const Ray &ray, Float *tHit, SurfaceInteraction *isect) const;
bool IntersectP(const Ray &ray) const;