Rev | Line | |
---|
[2197] | 1 | #pragma once
|
---|
| 2 | #include "Vector.hpp"
|
---|
| 3 | #include <ostream>
|
---|
| 4 |
|
---|
| 5 | /*!
|
---|
| 6 | \brief Class that describes a virtual light source on a diffuse surface.
|
---|
| 7 | */
|
---|
| 8 | class Radion
|
---|
| 9 | {
|
---|
| 10 | public:
|
---|
| 11 | //! surface normal at the virtual light source
|
---|
| 12 | Vector normal;
|
---|
| 13 | //! power of the virtual light source
|
---|
| 14 | Vector radiance;
|
---|
| 15 | //! position of the virtual light source
|
---|
| 16 | Vector position;
|
---|
| 17 |
|
---|
| 18 | //! probability of generation (useful for clipping the form factor)
|
---|
| 19 | float probability;
|
---|
| 20 |
|
---|
| 21 | Radion(void);
|
---|
| 22 | ~Radion(void);
|
---|
| 23 |
|
---|
| 24 | double getFormFactorTo(const Radion& o) const;
|
---|
| 25 | };
|
---|
| 26 |
|
---|
| 27 | std::ostream& operator<<(std::ostream& s, const Radion& r);
|
---|
| 28 | std::istream& operator>>(std::istream& s, Radion& r); |
---|
Note: See
TracBrowser
for help on using the repository browser.