Static Public Member Functions | |
| template<typename T> | |
| static ShProgram | pointLight () |
| Omnidirectional light program IN(0) T lightColor - color;. | |
| template<typename T> | |
| static ShProgram | spotLight () |
| Spotlight program linear falloff from (lightVec | lightDir) == -1 to -cos(fallofAngle). | |
| template<typename T> | |
| static ShProgram | texLight2D (const ShBaseTexture2D< T > &tex) |
| 2D-Textured light program | |
Definition at line 37 of file ShKernelLight.hpp.
|
|||||||||
|
Omnidirectional light program IN(0) T lightColor - color;. OUT(0) T irrad - irradiance Definition at line 41 of file ShKernelLightImpl.hpp. References SH_BEGIN_PROGRAM, SH_DECL, and SH_END. |
|
|||||||||
|
Spotlight program linear falloff from (lightVec | lightDir) == -1 to -cos(fallofAngle). Takes a gradient direction and applies IN(0) T lightColor - color; IN(1) ShAttrib1f falloff - angle in radians where spotlight intensity begins to go to 0 IN(0) ShAttrib1f lightAngle - angle in radians where spotlight intensity = 0 IN(2) ShVector3f lightDir - light direction (VCS) The following usually comes from shVsh IN(3) ShPoint3f lightVec - light vector at surface point (VCS) OUT(0) T irrad - irradiance Definition at line 50 of file ShKernelLightImpl.hpp. References SH::cos(), SH::normalize(), SH_BEGIN_PROGRAM, SH_DECL, and SH_END. |
|
||||||||||
|
2D-Textured light program Takes as input IN(0) ShAttrib1f scaling - scaling on the texture (tiles texture) IN(1) ShAttrib1f lightAngle - angle in radians for fov of light IN(2) ShVector3f lightDir - direction light faces (VCS) IN(3) ShVector3f lightUp - up direction of light, must be orthogonal to lightDir (VCS) The following typically come from shVsh IN(3) ShVector3f lightVec - light vector at surface point (VCS) OUT(0) T irrad - irradiance Definition at line 74 of file ShKernelLightImpl.hpp. References SH::cross(), SH::frac(), SH::normalize(), SH_BEGIN_PROGRAM, SH_DECL, and SH_END. |
1.4.3-20050530