Beispiel #1
0
        public static void GetNativeCubeVertexes(NativeArray <float3> array)
        {
            var verts = CubeBuilder.Cube();

            for (var i = 0; i < 8; i++)
            {
                array[i] = verts[i];
            }
        }
Beispiel #2
0
        public static void GetNativeTangents(NativeArray <float4> array)
        {
            var counter = 0;

            foreach (var dir in DirectionsX.AllDirections)
            {
                array[counter] = CubeBuilder.GetTangent(dir);
                counter++;
            }
        }