#include <surfaces/Instance.h>
Inheritance diagram for Instance:

Public Member Functions | |
| Instance (const Surface *s, const Matrix &t, const Matrix &t_inv, SurfaceShader *mtl, LightShader *light) | |
| bool | hit (Ray &r, HitRecord &rec, Context &context) const |
| BBox | boundingBox (double time0, double time1) const |
| bool | overlapsBox (const BBox &box) const |
Public Attributes | |
| const Surface * | surface |
| Matrix | transform |
| The transformation matrix. | |
| Matrix | inv_transform |
| The inverse of the transformation Matrix. | |
| SurfaceShader * | sshader |
| A SurfaceShader to override the original. | |
| LightShader * | lshader |
| A LightShader to override the original. | |
|
||||||||||||||||
|
Intersect given ray with the surface.
Implements Surface. |
|
||||||||||||
|
Calculate the bounding box of the surface.
Implements Surface. |
|
|
Determine if this surface overlaps the input axis aligned box.
Implements Surface. |
1.4.3