Exemplo n.º 1
0
    float getV(CurvyMeshSegmentInfo info, int step, int stepsTotal)
    {
        switch (UV)
        {
        case MeshUV.StretchVSegment:
            return(step * UVParameter);

        case MeshUV.Absolute:
            return(info.Distance / UVParameter);

        default:     // StretchV
            return(step / (float)stepsTotal * UVParameter);
        }
    }
 float getV(CurvyMeshSegmentInfo info, int step, int stepsTotal)
 {
     switch (UV) {
         case MeshUV.StretchVSegment:
             return step*UVParameter;
         case MeshUV.Absolute:
             return info.Distance / UVParameter;
         default: // StretchV
             return step / (float)stepsTotal * UVParameter;
     }
 }