예제 #1
0
        public static int SwitchAxis(TexAxis axis)
        {
            int pointer = 0;

            switch (axis)
            {
            case TexAxis.X:
                pointer = 0;
                break;

            case TexAxis.Y:
                pointer = 1;
                break;
            }

            return(pointer);
        }
예제 #2
0
 private static Vector2 GetUv(SourceUtils.Vector3 pos, TexAxis uAxis, TexAxis vAxis)
 {
     return(new Vector2(
                pos.Dot(uAxis.Normal) + uAxis.Offset,
                pos.Dot(vAxis.Normal) + vAxis.Offset));
 }
        public static int SwitchAxis(TexAxis axis)
        {
            int pointer = 0;
            switch(axis){
                case TexAxis.X:
                    pointer = 0;
                break;

                case TexAxis.Y:
                    pointer = 1;
                break;

            }

            return pointer;
        }
예제 #4
0
 private SVector2 GetUv(SVector3 pos, TexAxis uAxis, TexAxis vAxis)
 {
     return(new SVector2(
                pos.Dot(uAxis.Normal) + uAxis.Offset,
                pos.Dot(vAxis.Normal) + vAxis.Offset));
 }
예제 #5
0
 private static Vector2 GetUv(Vector3 pos, TexAxis uAxis, TexAxis vAxis)
 {
     return(new Vector2(
                Vector3.Dot(pos, uAxis.Normal) + uAxis.Offset,
                Vector3.Dot(pos, vAxis.Normal) + vAxis.Offset));
 }