Powertek.Rt.PtFastPowShineLUT Class Reference
LookUpTable for Phong/Blinn Shine Calculation Math.Pow(0..1 (always positive), Mat.Shininess (0..200)) We gain approx 10x Performance... def resolution = 1000, means we have a base 0..1 with 3 decimals def maxValue = 200, we can calc exp (Shininess) 0..200 (int steps).
More...
List of all members.
|
Public Member Functions |
| PtFastPowShineLUT (int resolution, int maxValue) |
float | Pow (float x, float exp) |
Detailed Description
Constructor & Destructor Documentation
Powertek.Rt.PtFastPowShineLUT.PtFastPowShineLUT |
( |
int |
resolution, |
|
|
int |
maxValue | |
|
) |
| | |
PtFastPowShineLUT.
- Parameters:
-
| resolution | 1000 means 0..1 > 0.000..1.000, max Value 0..maxValue (0..200) |
| maxValue | |
Member Function Documentation
float Powertek.Rt.PtFastPowShineLUT.Pow |
( |
float |
x, |
|
|
float |
exp | |
|
) |
| | |
Fast Pow using LUT, up to 5 times faster then Math.Pow.
- Parameters:
-
- Returns:
The documentation for this class was generated from the following file: