triangle_luminaire.h

来自「图形处理算法合集3:包括图形处理、帧缓存技术、渲染、矩阵运算、建模方法」· C头文件 代码 · 共 32 行

H
32
字号
// ******************************************************************//// Physically Correct Direct Lighting For Distribution Ray Tracing//             by Changyaw Wang//// triangle_luminaire.h//// ******************************************************************class triangle : public geom_obj {public:    point p1;            // vertex    point p2;            // vertex    point p3;            // vertex    vector normal;       // normal vector    void hit(const point& x,   // viewpoint	     const vector& v,  // viewing direction	     const point on_light);   // hit point	         // Selects a point visible from x given (r1,r2).    // Here, visible means not SELF-shadowed.    virtual void select_visible_point(             const point& x,   // viewpoint             const double r1,  // random number             const double r2,  // random number             point& on_light,  // point corresponding to (r1,r2)             double& prob);    // probability of selecting on_light};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?