Ejemplo n.º 1
0
 public void ComputeCombinedMaterialAndSurfaceExtended(Vector3 position, out SurfacePropertiesExtended props)
 {
     if (this.Closed)
     {
         props = new SurfacePropertiesExtended();
     }
     else
     {
         this.Material.GetMaterialForPositionDebug(ref position, out props);
     }
 }
 /**
  * All mighty method for computing material, surface position and surface parameters in a single pass.
  * 
  * If material and surface position are required this is the best way to obtain that information.
  * 
  * When using the coefficient cache be sure to have it properly set up. (MyPlanetShapeProvider.PrepareCache())
  * 
  * This versio provides extremelly detailed data about a surface position and should be used for debugging only.
  */
 public void ComputeCombinedMaterialAndSurfaceExtended(Vector3 position, out SurfacePropertiesExtended props)
 {
     if (Closed)
     {
         Debug.Fail("Storage closed!");
         props = new SurfacePropertiesExtended();
         return;
     }
     Material.GetMaterialForPositionDebug(ref position, out props);
 }