Diff of /trunk/DefaultRenderer/DefaultRenderer.cs
Parent Directory
|
Revision Log
|
Patch
| revision 110, Thu Jan 8 10:41:32 2009 UTC | revision 111, Thu Jan 8 10:44:18 2009 UTC | |
|---|---|---|
| # | Line 241 | Line 241 |
| 241 | } | } |
| 242 | catch (Exception e) | catch (Exception e) |
| 243 | { | { |
| 244 | m_log.Error(e); | |
| 245 | MessageBox.Show(e.ToString()); | MessageBox.Show(e.ToString()); |
| 246 | Broken = true; | Broken = true; |
| 247 | } | } |
| # | Line 412 | Line 413 |
| 413 | double x = (v.Position.Length() == float.Parse("0")) ? 0 : (v.Position.X / v.Position.Length()); | double x = (v.Position.Length() == float.Parse("0")) ? 0 : (v.Position.X / v.Position.Length()); |
| 414 | double y = (v.Position.Length() == float.Parse("0")) ? 0 : (v.Position.Y / v.Position.Length()); | double y = (v.Position.Length() == float.Parse("0")) ? 0 : (v.Position.Y / v.Position.Length()); |
| 415 | ||
| 416 | mesh.TextureCoordinates.Add(new Point(x, y)); | //mesh.TextureCoordinates.Add(new Point(x, y)); |
| 417 | mesh.TextureCoordinates.Add(new Point(v.TexCoord.X,v.TexCoord.Y)); | |
| 418 | } | } |
| 419 | ||
| 420 | foreach (ushort ind in basic.Indices) | foreach (ushort ind in basic.Indices) |
| # | Line 462 | Line 464 |
| 464 | double x = (v.Position.Length() == float.Parse("0")) ? 0 : (v.Position.X / v.Position.Length()); | double x = (v.Position.Length() == float.Parse("0")) ? 0 : (v.Position.X / v.Position.Length()); |
| 465 | double y = (v.Position.Length() == float.Parse("0")) ? 0 : (v.Position.Y / v.Position.Length()); | double y = (v.Position.Length() == float.Parse("0")) ? 0 : (v.Position.Y / v.Position.Length()); |
| 466 | ||
| 467 | mesh.TextureCoordinates.Add(new Point(x, y)); | //mesh.TextureCoordinates.Add(new Point(x, y)); |
| 468 | mesh.TextureCoordinates.Add(new Point(v.TexCoord.X,v.TexCoord.Y)); | |
| 469 | } | } |
| 470 | ||
| 471 | foreach (ushort ind in basic.Indices) | foreach (ushort ind in basic.Indices) |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

