예제 #1
0
 public IResourceSource GetModelSource(PlaneModelSourcePlane plane, PlaneModelSourceNormalDirection normalDirection,
                                       float halfWidth, float halfHeight, float scaleU, float scaleV)
 {
     return(new Source(FactoryResourceCache, this)
     {
         HalfWidth = halfWidth,
         HalfHeight = halfHeight,
         ScaleU = scaleU,
         ScaleV = scaleV,
         Plane = plane,
         NormalDirection = normalDirection
     });
 }
예제 #2
0
 public IExplicitModel PlaneModel(PlaneModelSourcePlane plane, PlaneModelSourceNormalDirection normalDirection,
                                  float halfWidth, float halfHeight, float scaleU, float scaleV) =>
 (IExplicitModel)planeModelFactory.GetModelSource(plane, normalDirection, halfWidth, halfHeight, scaleU, scaleV).GetResource();