27 static double g(
double a,
double b);
28 static double G(
double b) ;
29 static double h_Sr(
double a,
double e);
30 static double H_Sr(
double a,
double e);
31 static double H_PhongEven(
double a,
double n);
32 static double H_PhongOdd(
double a,
double n);
33 static double H_PhongAverage(
double a,
double h);
34 static double H_PhongEvenNoN(
double a);
35 static double H_PhongOddNoN(
double a);
36 static double H_PhongAverageNoN(
double a);
61 static bool SrTable (
float *
t,
unsigned int width,
unsigned int height,
bool half_float_overflow_check =
false);
66 static double pd_Sr(
double dhr,
double percent_specular,
double angle_dhr,
double grazing_angle_reflectivity);
71 static double ps_Sr(
double dhr,
double percent_specular,
double angle_dhr,
double grazing_angle_reflectivity);
77 static double pe_Sr(
double dhr,
double percent_specular,
double angle_dhr,
double grazing_angle_reflectivity);
82 static double K_PhongH (
double k,
double angle,
double grazing_angle_reflection) ;
87 static void RecoverOldPhong (
double dhr,
double angleDhr,
double percentSpecular,
double lobe,
double *Shine,
double* Kamb,
double* Kdif,
double *Kspec);
105 static bool PhongHTable (
float *t,
unsigned int width,
unsigned int height,
bool half_float_overflow_check =
false);
112 static bool RoughnessTable (
float *t,
unsigned int width,
unsigned int height);