public static void GetNativeCubeVertexes(NativeArray <float3> array) { var verts = CubeBuilder.Cube(); for (var i = 0; i < 8; i++) { array[i] = verts[i]; } }
public static void GetNativeTangents(NativeArray <float4> array) { var counter = 0; foreach (var dir in DirectionsX.AllDirections) { array[counter] = CubeBuilder.GetTangent(dir); counter++; } }