Esempio n. 1
0
 public static Vertex FastLerp(Vertex a, Vertex b, float t) => new Vertex
 {
     point        = Vector4.Lerp(a.point, b.point, t),
     onePerZ      = MathRaster.Lerp(a.onePerZ, b.onePerZ, t),
     uv           = Vector2.Lerp(a.uv, b.uv, t),
     normal       = Vector3.Lerp(a.normal, b.normal, t),
     color        = Color32.Lerp(a.color, b.color, t),
     distance2Cam = MathRaster.Lerp(a.distance2Cam, b.distance2Cam, t)
 };
Esempio n. 2
0
        public static Vertex Lerp(Vertex a, Vertex b, float t) => new Vertex
        {
            uv = Vector2.Lerp(a.uv, b.uv, t),
//
//                vcolor = Lerp(a.vcolor, b.vcolor, t),
//                u = Lerp(a.u, b.u, t),
//                v = Lerp(a.v, b.v, t),
//                point = Lerp(a.point, b.point, t),
//                lightingColor = Lerp(a.lightingColor, b.lightingColor, t)
        };