Subversion Repositories gelsvn

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
688 khor 1
#ifndef __PATHTRACER_OMNI__H__
2
#define __PATHTRACER_OMNI__H__
3
 
4
#include "luminaire.h"
5
 
6
class omni : public luminaire
7
{
8
public:
9
    omni(const CGLA::Vec3f& phi);
10
 
11
    void set_power(const CGLA::Vec3f& phi);
12
 
13
    bool sample(const ray&, const hit_info&, CGLA::Vec3f& L,
14
                CGLA::Vec3f& w) const;
15
 
16
private:
17
 
18
    //power in W
19
    CGLA::Vec3f power_;
20
 
21
};
22
 
23
#endif
24
 
25
//02566 framework, Anders Wang Kristensen, awk@imm.dtu.dk, 2007