Searched refs:pm3d_shade (Results 1 – 19 of 19) sorted by relevance
/dports/math/gnuplot-tex-extras/gnuplot-5.2.8/src/ |
H A D | pm3d.c | 42 lighting_model pm3d_shade; variable 796 if (pm3d_shade.strength > 0) { in pm3d_plot() 1136 pm3d_shade.strength = 0.0; in pm3d_reset() 1137 pm3d_shade.spec = 0.0; in pm3d_reset() 1138 pm3d_shade.fixed = TRUE; in pm3d_reset() 1158 light[0] = cos(-DEG2RAD*pm3d_shade.rot_x)*cos(-(DEG2RAD*pm3d_shade.rot_z+90)); in pm3d_draw_one() 1159 light[2] = cos(-DEG2RAD*pm3d_shade.rot_x)*sin(-(DEG2RAD*pm3d_shade.rot_z+90)); in pm3d_draw_one() 1395 if (pm3d_shade.fixed) { 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() [all …]
|
H A D | pm3d.h | 138 extern lighting_model pm3d_shade;
|
H A D | set.c | 4073 pm3d_shade.strength = 0.0; in set_pm3d() 6567 pm3d_shade.ambient = 1.0; in parse_lighting_options() 6568 pm3d_shade.Phong = 5.0; /* Phong exponent */ in parse_lighting_options() 6569 pm3d_shade.rot_x = 45; /* illumination angle */ in parse_lighting_options() 6570 pm3d_shade.rot_z = -45; /* illumination angle */ in parse_lighting_options() 6571 pm3d_shade.fixed = TRUE; /* TRUE means the light does not rotate */ in parse_lighting_options() 6575 pm3d_shade.spec = 0.2; /* contribution of specular highlights */ in parse_lighting_options() 6580 pm3d_shade.strength = real_expression(); in parse_lighting_options() 6581 pm3d_shade.strength = clip_to_01(pm3d_shade.strength); in parse_lighting_options() 6587 pm3d_shade.spec = real_expression(); in parse_lighting_options() [all …]
|
H A D | save.c | 916 if (pm3d_shade.strength <= 0) in save_set_all() 919 fprintf(fp, "set pm3d lighting primary %g specular %g\n", pm3d_shade.strength, pm3d_shade.spec); in save_set_all()
|
H A D | show.c | 2507 if (pm3d_shade.strength > 0) { in show_pm3d() 2509 pm3d_shade.strength, pm3d_shade.spec); in show_pm3d()
|
/dports/math/gnuplot/gnuplot-5.4.1/src/ |
H A D | pm3d.c | 40 lighting_model pm3d_shade; variable 1095 pm3d_shade.strength = 0.0; in pm3d_reset() 1096 pm3d_shade.spec = 0.0; in pm3d_reset() 1097 pm3d_shade.fixed = TRUE; in pm3d_reset() 1208 if (pm3d_shade.strength > 0) in pm3d_add_polygon() 1395 light[0] = cos(-DEG2RAD*pm3d_shade.rot_x)*cos(-(DEG2RAD*pm3d_shade.rot_z+90)); in pm3d_init_lighting_model() 1396 light[2] = cos(-DEG2RAD*pm3d_shade.rot_x)*sin(-(DEG2RAD*pm3d_shade.rot_z+90)); in pm3d_init_lighting_model() 1491 if (pm3d_shade.fixed) { 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() [all …]
|
H A D | pm3d.h | 140 extern lighting_model pm3d_shade;
|
H A D | set.c | 4101 pm3d_shade.strength = 0.0; in set_pm3d() 6615 pm3d_shade.ambient = 1.0; in parse_lighting_options() 6616 pm3d_shade.Phong = 5.0; /* Phong exponent */ in parse_lighting_options() 6617 pm3d_shade.rot_x = 45; /* illumination angle */ in parse_lighting_options() 6618 pm3d_shade.rot_z = -45; /* illumination angle */ in parse_lighting_options() 6629 pm3d_shade.strength = real_expression(); in parse_lighting_options() 6630 pm3d_shade.strength = clip_to_01(pm3d_shade.strength); in parse_lighting_options() 6636 pm3d_shade.spec = real_expression(); in parse_lighting_options() 6637 pm3d_shade.spec = clip_to_01(pm3d_shade.spec); in parse_lighting_options() 6643 pm3d_shade.spec2 = real_expression(); in parse_lighting_options() [all …]
|
H A D | vplot.c | 207 if (pm3d_shade.strength > 0) in vplot_isosurface()
|
H A D | save.c | 948 if (pm3d_shade.strength <= 0) in save_set_all() 952 pm3d_shade.strength, pm3d_shade.spec, pm3d_shade.spec2); in save_set_all()
|
H A D | show.c | 2531 if (pm3d_shade.strength > 0) { in show_pm3d() 2533 pm3d_shade.strength, pm3d_shade.spec); in show_pm3d() 2535 pm3d_shade.spec2); in show_pm3d()
|
H A D | graph3d.c | 3814 if (pm3d_shade.strength > 0) in plot3d_boxes() 3958 if (pm3d_shade.strength > 0) in plot3d_polygons()
|
/dports/math/gnuplot-lite/gnuplot-5.4.1/src/ |
H A D | pm3d.c | 40 lighting_model pm3d_shade; variable 1095 pm3d_shade.strength = 0.0; in pm3d_reset() 1096 pm3d_shade.spec = 0.0; in pm3d_reset() 1097 pm3d_shade.fixed = TRUE; in pm3d_reset() 1208 if (pm3d_shade.strength > 0) in pm3d_add_polygon() 1395 light[0] = cos(-DEG2RAD*pm3d_shade.rot_x)*cos(-(DEG2RAD*pm3d_shade.rot_z+90)); in pm3d_init_lighting_model() 1396 light[2] = cos(-DEG2RAD*pm3d_shade.rot_x)*sin(-(DEG2RAD*pm3d_shade.rot_z+90)); in pm3d_init_lighting_model() 1491 if (pm3d_shade.fixed) { 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() [all …]
|
H A D | pm3d.h | 140 extern lighting_model pm3d_shade;
|
H A D | set.c | 4101 pm3d_shade.strength = 0.0; in set_pm3d() 6615 pm3d_shade.ambient = 1.0; in parse_lighting_options() 6616 pm3d_shade.Phong = 5.0; /* Phong exponent */ in parse_lighting_options() 6617 pm3d_shade.rot_x = 45; /* illumination angle */ in parse_lighting_options() 6618 pm3d_shade.rot_z = -45; /* illumination angle */ in parse_lighting_options() 6629 pm3d_shade.strength = real_expression(); in parse_lighting_options() 6630 pm3d_shade.strength = clip_to_01(pm3d_shade.strength); in parse_lighting_options() 6636 pm3d_shade.spec = real_expression(); in parse_lighting_options() 6637 pm3d_shade.spec = clip_to_01(pm3d_shade.spec); in parse_lighting_options() 6643 pm3d_shade.spec2 = real_expression(); in parse_lighting_options() [all …]
|
H A D | vplot.c | 207 if (pm3d_shade.strength > 0) in vplot_isosurface()
|
H A D | save.c | 948 if (pm3d_shade.strength <= 0) in save_set_all() 952 pm3d_shade.strength, pm3d_shade.spec, pm3d_shade.spec2); in save_set_all()
|
H A D | show.c | 2531 if (pm3d_shade.strength > 0) { in show_pm3d() 2533 pm3d_shade.strength, pm3d_shade.spec); in show_pm3d() 2535 pm3d_shade.spec2); in show_pm3d()
|
H A D | graph3d.c | 3814 if (pm3d_shade.strength > 0) in plot3d_boxes() 3958 if (pm3d_shade.strength > 0) in plot3d_polygons()
|