76 |
*/ |
*/ |
77 |
class TexGen : public LightSetup { |
class TexGen : public LightSetup { |
78 |
protected: |
protected: |
79 |
float svec[4]; |
// XXX: Currently the last four values are always initialized to 0,0,0,1 |
80 |
float tvec[4]; |
float tex_mat[16]; |
|
float rvec[4]; |
|
|
float qvec[4]; // XXX: Currently always initialized to 0,0,0,1 |
|
81 |
|
|
82 |
public: |
public: |
83 |
/** Create a new texgen. |
/** Create a new texgen. |
109 |
virtual void setUp(LightParam *param) ; |
virtual void setUp(LightParam *param) ; |
110 |
|
|
111 |
virtual void setUpVP(int unit, LightParam * param); |
virtual void setUpVP(int unit, LightParam * param); |
|
virtual string getVPCode(int unit); |
|
112 |
}; |
}; |
113 |
|
|
114 |
/** TexGen for transforming light intensity or direction map |
/** TexGen for transforming light intensity or direction map |
177 |
|
|
178 |
|
|
179 |
/** Vertex Program Version of the rendering interface |
/** Vertex Program Version of the rendering interface |
|
* XXX: currently only plain TexGens are implemented |
|
|
* Note: most fields of *param will be ignored |
|
180 |
*/ |
*/ |
181 |
void setUpVP(LightParam *param); |
void setUpVP(LightParam *param); |
182 |
void tearDownVP(); |
void tearDownVP(); |