Searched refs:spec_fact (Results 1 – 3 of 3) sorted by relevance
1363 double dot_prod, shade_fact, spec_fact; in apply_lighting_model() local1434 spec_fact = pow(dot_prod, pm3d_shade.Phong); in apply_lighting_model()1436 tmp_r += pm3d_shade.spec*spec_fact; in apply_lighting_model()1437 tmp_g += pm3d_shade.spec*spec_fact; in apply_lighting_model()1438 tmp_b += pm3d_shade.spec*spec_fact; in apply_lighting_model()
1441 double dot_prod, shade_fact, spec_fact; in apply_lighting_model() local1528 spec_fact = pow(fabs(dot_prod), pm3d_shade.Phong); in apply_lighting_model()1532 tmp_r += pm3d_shade.spec * spec_fact; in apply_lighting_model()1533 tmp_g += pm3d_shade.spec * spec_fact; in apply_lighting_model()1534 tmp_b += pm3d_shade.spec * spec_fact; in apply_lighting_model()1538 tmp_r += pm3d_shade.spec2 * spec_fact; in apply_lighting_model()