Exemplo n.º 1
0
 public void AddGeometry(RenderGeometryTask renderGeometry)
 {
     foreach (var sorted in sortedTextureGeometries)
     {
         if (sorted.texture == renderGeometry.Material.DiffuseMap)
         {
             sorted.geometries.Add(renderGeometry);
             return;
         }
     }
     sortedTextureGeometries.Add(new GeometryPerTexture(renderGeometry, device));
 }
Exemplo n.º 2
0
 public GeometryPerShader(RenderGeometryTask renderGeometry, Device device)
 {
     shader      = renderGeometry.Material.Shader;
     this.device = device;
     AddGeometry(renderGeometry);
 }
Exemplo n.º 3
0
 public GeometryPerTexture(RenderGeometryTask renderGeometry, Device device)
 {
     this.device = device;
     texture     = renderGeometry.Material.DiffuseMap;
     geometries.Add(renderGeometry);
 }