/[gzz]/gzz/gfx/librenderables/renderables.py
ViewVC logotype

Diff of /gzz/gfx/librenderables/renderables.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21 by jvk, Wed Sep 11 13:18:16 2002 UTC revision 1.22 by jvk, Thu Sep 12 14:52:27 2002 UTC
# Line 488  rs = [ Line 488  rs = [
488                        ZPt pos = coords1.transform(Pt(x,y));                        ZPt pos = coords1.transform(Pt(x,y));
489                        float a = b0.dot(pos - borig);                        float a = b0.dot(pos - borig);
490                        float b = b1.dot(pos - borig);                        float b = b1.dot(pos - borig);
491                          float c = pos.z - borig.z;
492    
493                        // Modulate distance from coords2 origin                        // Modulate distance from coords2 origin
494                        float m = 1 + 2.0 / (1 + a * a + b * b);                        float t = (1 + a * a + b * b);
495                          float m = 1 + c / (t * t);
496    
497                        coords2.vertex(Pt(m*a, m*b));                        coords2.vertex(ZPt(m*a, m*b, c));
498                      }                      }
499                    }                    }
500                    glEnd();                    glEnd();

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26