Add a macro to switch between white and blacvk lines

This commit is contained in:
Andreas Fabri 2018-12-19 11:50:36 +01:00
parent 5c34bb1f36
commit 25b2a72c31
2 changed files with 8 additions and 3 deletions

View File

@ -29,6 +29,9 @@
#define ARBITRARY_DBL_MIN 1.0E-30
#define ARBITRARY_DBL_MAX 1.0E+30
// Define this and resources/heat_intensity_shader.f will draw black instead of white lines.
// #define HEAT_METHOD_BLACK_LINES
//Item for heat values
typedef CGAL::Three::Triangle_container Tri;
typedef CGAL::Three::Viewer_interface VI;

View File

@ -76,9 +76,11 @@ void main(void) {
h = h - floor(h);
h = (1./(1.+exp(-100.*(h-.55)))) + (1./(1.+exp(-100.*(-h+.45))));
h = 1.-h;
c = h*vec3(1.,1.,1.) + (1.-h)*c;
#ifdef HEAT_METHOD_BLACK_LINES
c = h*vec3(0.,0.,0.) + (1.-h)*c;
#else
c = h*vec3(1.,1.,1.) + (1.-h)*c;
#endif
out_color.rgb = c;
out_color.a = alpha;
}