Diff of /trunk/DefaultRenderer/DefaultRenderer.cs
Parent Directory
|
Revision Log
|
Patch
| revision 17, Tue Sep 2 01:37:37 2008 UTC | revision 25, Wed Sep 10 22:33:15 2008 UTC | |
|---|---|---|
| # | Line 271 | Line 271 |
| 271 | Random x = new Random(); | Random x = new Random(); |
| 272 | Color col = colAry[x.Next(0, 5)]; | Color col = colAry[x.Next(0, 5)]; |
| 273 | ||
| 274 | if (data.Textures != null && | |
| 275 | data.Textures.FaceTextures != null && | |
| 276 | data.Textures.FaceTextures.Length > 0) | |
| 277 | { | |
| 278 | col = Color.FromScRgb(data.Textures.DefaultTexture.RGBA.A, | |
| 279 | data.Textures.DefaultTexture.RGBA.R, | |
| 280 | data.Textures.DefaultTexture.RGBA.G, | |
| 281 | data.Textures.DefaultTexture.RGBA.B); | |
| 282 | } | |
| 283 | ||
| 284 | triangleModel = new GeometryModel3D( | triangleModel = new GeometryModel3D( |
| 285 | mesh, new DiffuseMaterial(new SolidColorBrush(col))); | mesh, new DiffuseMaterial(new SolidColorBrush(col))); |
| 286 |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

