public MaterialData(UVMapFnID fn, Vector3 size, int numTiles, Vector2 bark) { this.size = size; mapFnID = fn; halfSize = size * 0.5f; tiles = new Vector2[numTiles * 2]; barkThickness = new Vector2(bark.x, bark.y); }
public static UVMapFn GetMapFunction(UVMapper mapper, UVMapFnID id) { return(mapper.mapFunctions[(int)id]); }