Ejemplo n.º 1
0
        public static Matrix4 CreateTransformationMatrix(ChunkPos translation, Vector3 scale)
        {
            Matrix4 s = Matrix4.CreateScale(scale.X, scale.Y, scale.Z);
            Matrix4 t = Matrix4.CreateTranslation(translation.WorldSpaceX(), 0, translation.WorldSpaceZ());

            return(s * t);
        }