Commit f7b84fb24d22e826a6064040bba6e844ff9b5892
1 parent
24dee661
more debug statements
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
stim/gl/gl_spider.h
@@ -1046,6 +1046,13 @@ class gl_spider // : public virtual gl_texture<T> | @@ -1046,6 +1046,13 @@ class gl_spider // : public virtual gl_texture<T> | ||
1046 | out[1] = 0.0; | 1046 | out[1] = 0.0; |
1047 | out[2] = 0.0; | 1047 | out[2] = 0.0; |
1048 | out[3] = 1.0; | 1048 | out[3] = 1.0; |
1049 | + } | ||
1050 | + else if(out[0] < -180.0+0.01) | ||
1051 | + { | ||
1052 | + out[0] = 180.0; | ||
1053 | + out[1] = 1.0; | ||
1054 | + out[2] = 0.0; | ||
1055 | + out[3] = 0.0; | ||
1049 | } else { | 1056 | } else { |
1050 | stim::vec3<float> temp(0.0, 0.0, 0.0);; | 1057 | stim::vec3<float> temp(0.0, 0.0, 0.0);; |
1051 | temp = (from.cross(dir)).norm(); | 1058 | temp = (from.cross(dir)).norm(); |