Searched refs:shade_fact (Results 1 – 3 of 3) sorted by relevance
1363 double dot_prod, shade_fact, spec_fact; in apply_lighting_model() local1412 shade_fact = (dot_prod < 0) ? -dot_prod : 0; in apply_lighting_model()1414 tmp_r = r*(pm3d_shade.ambient-pm3d_shade.strength+shade_fact*pm3d_shade.strength); in apply_lighting_model()1415 tmp_g = g*(pm3d_shade.ambient-pm3d_shade.strength+shade_fact*pm3d_shade.strength); in apply_lighting_model()1416 tmp_b = b*(pm3d_shade.ambient-pm3d_shade.strength+shade_fact*pm3d_shade.strength); in apply_lighting_model()
1441 double dot_prod, shade_fact, spec_fact; in apply_lighting_model() local1508 shade_fact = (dot_prod < 0) ? -dot_prod : 0; in apply_lighting_model()1510 tmp_r = r*(pm3d_shade.ambient-pm3d_shade.strength+shade_fact*pm3d_shade.strength); in apply_lighting_model()1511 tmp_g = g*(pm3d_shade.ambient-pm3d_shade.strength+shade_fact*pm3d_shade.strength); in apply_lighting_model()1512 tmp_b = b*(pm3d_shade.ambient-pm3d_shade.strength+shade_fact*pm3d_shade.strength); in apply_lighting_model()