Revision 176,
602 bytes
checked in by bittner, 19 years ago
(diff) |
cosine sampling bug fixed
|
Rev | Line | |
---|
[162] | 1 | #ifndef _SamplingPreprocessor_H__ |
---|
| 2 | #define _SamplingPreprocessor_H__ |
---|
| 3 | |
---|
| 4 | #include "Preprocessor.h" |
---|
| 5 | |
---|
| 6 | |
---|
| 7 | /** Sampling based visibility preprocessing. The implementation is based on heuristical |
---|
| 8 | sampling of view space */ |
---|
| 9 | class SamplingPreprocessor : public Preprocessor { |
---|
| 10 | public: |
---|
[176] | 11 | int mSamplesPerPass; |
---|
| 12 | int mTotalSamples; |
---|
| 13 | int mKdPvsDepth; |
---|
| 14 | |
---|
| 15 | SamplingPreprocessor(); |
---|
| 16 | |
---|
[162] | 17 | virtual bool ComputeVisibility(); |
---|
[176] | 18 | |
---|
| 19 | void |
---|
| 20 | SetupRay(Ray &ray, const Vector3 &point, const Vector3 &direction); |
---|
| 21 | |
---|
| 22 | KdNode * |
---|
| 23 | GetNodeForPvs(KdLeaf *leaf); |
---|
| 24 | |
---|
| 25 | int |
---|
| 26 | AddNodeSamples(Intersectable *object, const Ray &ray); |
---|
| 27 | |
---|
[162] | 28 | }; |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.