Refine Bowl Valley terrain for player-scale exploration
Add a per-tile detail pass (BowlValleyDetail.cs) on top of the unchanged continent height function: - plains: rolling ground, small rises and shallow drainage (< 10 deg) - foothills rising toward the eastern range; mountain gullies and benches (carved only) with scree and wind-scoured snow painting - summit caps are protected: all 41 checked summits are identical to the previous heightmap (max still 9,763.32 m world), 3x VE unchanged - three graded routes (Tarn pass, Southern pass, Northern route) found by least-cost search, grade-limited to ~14 deg, with river fords - river banks rise beside the water, with periodic gentle approaches; gravel margins on rivers and lake shores - playable tiles use a 2049 heightmap / 1024 splat map; edges follow the 1025 neighbours exactly (height seams stitched to the stored step) Fix the tile-boundary colour steps: layer textures are now seamless 1024 px with normal maps, repeat a whole number of times per tile and keep a long repeat (32-bit UV precision); splat texels are sampled at the positions Unity renders them (i/(A-1)), so neighbouring tiles share their edge paint. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
bb5c70bd92
commit
91a6892532
+10552
-10552
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,931 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace TravelersQuest.World.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Player-scale refinement (eye height 1.83 m) layered on top of the continent height function.
|
||||
///
|
||||
/// The broad terrain (<see cref="Height"/>) is left exactly as it was; detail is added per tile on a lattice:
|
||||
/// - plains: rolling ground, small rises and shallow drainage swales (a few metres, walkable slopes);
|
||||
/// - foothills: rounded hills where the land climbs toward the mountains;
|
||||
/// - mountains: downhill-running gullies and benches, carved only (never raised);
|
||||
/// - a few graded passes through the eastern range (least-cost routes, grade-limited);
|
||||
/// - summit caps (the top ~15 m around every local high point) are protected, so peak heights do not change.
|
||||
/// Playable tiles (around <see cref="PlayableSpots"/>) use a 2049 heightmap (~30 m) and a 1024 splat map; their
|
||||
/// edges blend onto the 1025 lattice so they meet their neighbours without seams.
|
||||
/// </summary>
|
||||
public static partial class BowlValleyTerrainBuilder
|
||||
{
|
||||
public const int DetailRes = 2049, DetailAlphaRes = 1024;
|
||||
// Spots the player is expected to explore first: tiles within PlayableRadius get the fine lattice.
|
||||
static readonly Vector2[] PlayableSpots =
|
||||
{
|
||||
new Vector2(0, 0), new Vector2(-155000, 0), new Vector2(-70000, 120000), new Vector2(125000, 0),
|
||||
new Vector2(165000, 20000), new Vector2(190000, 60000), new Vector2(227980, 64870),
|
||||
};
|
||||
const float PlayableRadius = 6000f;
|
||||
const float ProtectRadius = 450f; // summit caps: within ~15 m (true) of the highest ground this close -> untouched
|
||||
const float GradBase = 240f; // baseline (m) of the gradient that orients gullies
|
||||
const float SlopeBase = 61f; // baseline (m) of the slope used for painting, the same on every tile
|
||||
const float CurvBase = 120f; // ring radius (m) of the curvature used for painting
|
||||
|
||||
[ThreadStatic] static float sampleCell; // lattice spacing being built; ApplyWater sizes creek banks to it
|
||||
|
||||
public static bool IsDetailTile(int tx, int tz)
|
||||
{
|
||||
if (CutOutsideOutline || tx < 0 || tz < 0 || tx >= TilesX || tz >= TilesZ) return false;
|
||||
float x0 = -WorldSizeX / 2 + tx * TileW, z0 = -WorldSizeZ / 2 + tz * TileD;
|
||||
foreach (var p in PlayableSpots)
|
||||
{
|
||||
float dx = Mathf.Max(0, Mathf.Max(x0 - p.x, p.x - (x0 + TileW)));
|
||||
float dz = Mathf.Max(0, Mathf.Max(z0 - p.y, p.y - (z0 + TileD)));
|
||||
if (dx * dx + dz * dz < PlayableRadius * PlayableRadius) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>Final tile heights (true metres) with a Q-sample apron on every side (so slopes and curvature
|
||||
/// at the tile edge see the neighbouring ground).</summary>
|
||||
public struct TileGrid
|
||||
{
|
||||
public float[] h; public int res, Q;
|
||||
public int W => res + 2 * Q;
|
||||
public float At(int i, int j) => h[(j + Q) * W + i + Q];
|
||||
}
|
||||
|
||||
static TileGrid TileHeights(int tx, int tz, int res)
|
||||
{
|
||||
float tileW = TileW, tileD = TileD;
|
||||
double ox = -WorldSizeX / 2 + tx * tileW, oz = -WorldSizeZ / 2 + tz * tileD; // same expression as BuildRow
|
||||
int Qc = ApronFor(TileRes);
|
||||
var coarse = DetailedGrid(ox, oz, TileRes, Qc, out _);
|
||||
if (res == TileRes) return new TileGrid { h = coarse, res = TileRes, Q = Qc };
|
||||
|
||||
int Q = ApronFor(res);
|
||||
var fine = DetailedGrid(ox, oz, res, Q, out var protect);
|
||||
int f = (res - 1) / (TileRes - 1), W = res + 2 * Q, Wc = TileRes + 2 * Qc, last = res - 1;
|
||||
// edges that meet a 1025 tile (or no tile) follow the coarse lattice exactly; blend over 16 samples (~490 m)
|
||||
bool cW = !IsDetailTile(tx - 1, tz), cE = !IsDetailTile(tx + 1, tz), cS = !IsDetailTile(tx, tz - 1), cN = !IsDetailTile(tx, tz + 1);
|
||||
bool cSW = !IsDetailTile(tx - 1, tz - 1), cSE = !IsDetailTile(tx + 1, tz - 1), cNW = !IsDetailTile(tx - 1, tz + 1), cNE = !IsDetailTile(tx + 1, tz + 1);
|
||||
const float Blend = 16f;
|
||||
Parallel.For(-Q, res + Q, j =>
|
||||
{
|
||||
for (int i = -Q; i < res + Q; i++)
|
||||
{
|
||||
int k = (j + Q) * W + i + Q;
|
||||
float w = protect[k];
|
||||
if (cW) w = Mathf.Max(w, S01(Blend, 0, i)); if (cE) w = Mathf.Max(w, S01(Blend, 0, last - i));
|
||||
if (cS) w = Mathf.Max(w, S01(Blend, 0, j)); if (cN) w = Mathf.Max(w, S01(Blend, 0, last - j));
|
||||
if (cSW) w = Mathf.Max(w, S01(Blend, 0, Mathf.Max(i, j)));
|
||||
if (cSE) w = Mathf.Max(w, S01(Blend, 0, Mathf.Max(last - i, j)));
|
||||
if (cNW) w = Mathf.Max(w, S01(Blend, 0, Mathf.Max(i, last - j)));
|
||||
if (cNE) w = Mathf.Max(w, S01(Blend, 0, Mathf.Max(last - i, last - j)));
|
||||
if (w <= 0) continue;
|
||||
// coarse lattice, bilinear (exact at the shared samples)
|
||||
int ci = FloorDiv(i, f), cj = FloorDiv(j, f);
|
||||
float fx = (float)(i - ci * f) / f, fy = (float)(j - cj * f) / f;
|
||||
int a = (cj + Qc) * Wc + ci + Qc;
|
||||
int ax = fx > 0 ? 1 : 0, ay = fy > 0 ? Wc : 0;
|
||||
float l0 = coarse[a] + (coarse[a + ax] - coarse[a]) * fx, l1 = coarse[a + ay] + (coarse[a + ay + ax] - coarse[a + ay]) * fx;
|
||||
float L = l0 + (l1 - l0) * fy;
|
||||
fine[k] = w >= 1 ? L : fine[k] + (L - fine[k]) * w;
|
||||
}
|
||||
});
|
||||
return new TileGrid { h = fine, res = res, Q = Q };
|
||||
}
|
||||
|
||||
static int FloorDiv(int a, int b) => a >= 0 ? a / b : -((-a + b - 1) / b);
|
||||
static int ApronFor(int res) => Mathf.Max(1, Mathf.RoundToInt(CurvBase / CellFor(res)));
|
||||
static float CellFor(int res) => Mathf.Min(TileW, TileD) / (res - 1);
|
||||
|
||||
/// <summary>Detailed heights on a res x res lattice plus a Q apron. protect: 1 where the summit-cap rule left the
|
||||
/// ground untouched (fine tiles follow the coarse lattice there, so summits keep their exact height).</summary>
|
||||
static float[] DetailedGrid(double ox, double oz, int res, int Q, out float[] protect)
|
||||
{
|
||||
int n = res - 1; float tileW = TileW, tileD = TileD;
|
||||
float cx = tileW / n, cz = tileD / n, cell = Mathf.Min(cx, cz);
|
||||
int R = Mathf.CeilToInt(ProtectRadius / cell), K = Mathf.Max(1, Mathf.RoundToInt(GradBase / cell));
|
||||
int P = Q + R + K + 1, N = res + 2 * P;
|
||||
var H = new float[N * N];
|
||||
Parallel.For(0, N, J =>
|
||||
{
|
||||
for (int I = 0; I < N; I++)
|
||||
{
|
||||
double wx = ox + (double)(I - P) / n * tileW, wz = oz + (double)(J - P) / n * tileD;
|
||||
H[J * N + I] = HeightNoWater(wx, wz);
|
||||
}
|
||||
});
|
||||
var M = MaxFilter(H, N, R);
|
||||
int W = res + 2 * Q;
|
||||
var o = new float[W * W]; var prot = new float[W * W];
|
||||
float ve = VerticalExaggeration;
|
||||
Parallel.For(-Q, res + Q, j =>
|
||||
{
|
||||
sampleCell = cell;
|
||||
for (int i = -Q; i < res + Q; i++)
|
||||
{
|
||||
int k = (j + P) * N + i + P, ko = (j + Q) * W + i + Q;
|
||||
double wx = ox + (double)i / n * tileW, wz = oz + (double)j / n * tileD;
|
||||
float h = H[k];
|
||||
if (CutOutsideOutline) { o[ko] = Mathf.Clamp(h, -SeaDepth + 10, MaxHeight - 20); continue; }
|
||||
float gx = ve * (H[k + K] - H[k - K]) / (2 * K * cx), gz = ve * (H[k + K * N] - H[k - K * N]) / (2 * K * cz);
|
||||
float pr = S01(1000, 1400, h) * S01(60, 15, M[k] - h);
|
||||
float hd = h + (1 - pr) * DetailDelta(wx, wz, h, gx, gz, cell);
|
||||
float hw = ApplyWater(h, wx, wz, out _, out float infl);
|
||||
float a = 1 - infl;
|
||||
float hf = hw + (hd - h) * a * a; // detail fades out where water shapes the ground
|
||||
// graded passes: cut through low knolls too (only summit caps above 2,700 m true stay protected);
|
||||
// they cross rivers at fords graded to water level, so they are applied after the water
|
||||
float rw = (1 - pr * S01(2600, 2800, h)) * RouteWeight(wx, wz, out float T, out _);
|
||||
if (rw > 0) hf += (T - hf) * rw;
|
||||
o[ko] = Mathf.Clamp(hf, -SeaDepth + 10, MaxHeight - 20);
|
||||
prot[ko] = pr * (rw > 0 ? S01(2600, 2800, h) : 1);
|
||||
}
|
||||
});
|
||||
protect = prot;
|
||||
return o;
|
||||
}
|
||||
|
||||
static float[] MaxFilter(float[] a, int N, int R)
|
||||
{
|
||||
var t = new float[N * N]; var o = new float[N * N];
|
||||
Parallel.For(0, N, j =>
|
||||
{
|
||||
int row = j * N;
|
||||
for (int i = 0; i < N; i++)
|
||||
{
|
||||
float m = float.MinValue; int i0 = Math.Max(0, i - R), i1 = Math.Min(N - 1, i + R);
|
||||
for (int q = i0; q <= i1; q++) m = Math.Max(m, a[row + q]);
|
||||
t[row + i] = m;
|
||||
}
|
||||
});
|
||||
Parallel.For(0, N, i =>
|
||||
{
|
||||
for (int j = 0; j < N; j++)
|
||||
{
|
||||
float m = float.MinValue; int j0 = Math.Max(0, j - R), j1 = Math.Min(N - 1, j + R);
|
||||
for (int q = j0; q <= j1; q++) m = Math.Max(m, t[q * N + i]);
|
||||
o[j * N + i] = m;
|
||||
}
|
||||
});
|
||||
return o;
|
||||
}
|
||||
|
||||
/// <summary>Height change (true metres) at a point. gx, gz: world-unit gradient over ~240 m; cell: lattice spacing
|
||||
/// (features finer than ~2.5 cells are left out of coarse tiles).</summary>
|
||||
static float DetailDelta(double wx, double wz, float h, float gx, float gz, float cell)
|
||||
{
|
||||
float ve = VerticalExaggeration, g = Mathf.Sqrt(gx * gx + gz * gz);
|
||||
float slope = Mathf.Atan(g) * Mathf.Rad2Deg;
|
||||
bool fine = cell < 40f;
|
||||
float d = 0;
|
||||
|
||||
// plains (world metres): rolling ground, small rises, shallow drainage swales. Slopes stay under ~8 degrees.
|
||||
float low = S01(1150, 750, h) * S01(0, 6, h) * S01(20, 9, slope);
|
||||
if (low > 0)
|
||||
{
|
||||
float roll = 9f * (float)Noise.Fbm(wx / 1600 + 41.7, wz / 1600 - 23.2, 2)
|
||||
+ 3.5f * (float)Noise.Perlin(wx / 520 - 7.7, wz / 520 + 13.1);
|
||||
float rise = 3.5f * S01(0.15f, 0.55f, (float)Noise.Perlin(wx / 650 + 3.9, wz / 650 + 27.4));
|
||||
double sx = wx + 450 * Noise.Perlin(wx / 2300 + 5.5, wz / 2300 - 1.2), sz = wz + 450 * Noise.Perlin(wx / 2300 - 8.1, wz / 2300 + 4.4);
|
||||
float swale = -3.2f * Pow(1 - Mathf.Abs((float)Noise.Perlin(sx / 1700 + 61.3, sz / 1700 - 2.8)), 8);
|
||||
float fineD = 0;
|
||||
if (fine)
|
||||
fineD = -1.3f * Pow(1 - Mathf.Abs((float)Noise.Perlin(sx / 620 - 33.1, sz / 620 + 9.4)), 10)
|
||||
+ 1.2f * (float)Noise.Fbm(wx / 170 + 2.2, wz / 170 - 6.6, 2);
|
||||
d += low * (roll + rise + swale + fineD) / ve;
|
||||
}
|
||||
|
||||
// foothills (true metres): rounded hills where the land climbs toward the mountains but is still low
|
||||
float prox = SampleFieldSmooth(fields.elevSmooth, (float)wx, (float)wz);
|
||||
float foot = S01(380, 1000, prox) * S01(1350, 800, h) * S01(0, 20, h);
|
||||
if (foot > 0)
|
||||
{
|
||||
float hills = 45f * S01(-0.15f, 0.55f, (float)Noise.Fbm(wx / 3800 - 71.3, wz / 3800 + 12.9, 3))
|
||||
+ 12f * S01(-0.1f, 0.6f, (float)Noise.Perlin(wx / 1250 + 9.9, wz / 1250 - 41.1));
|
||||
d += foot * hills;
|
||||
}
|
||||
|
||||
// mountains (true metres, carved only): gullies running downhill, and benches on mid slopes
|
||||
float mz = S01(650, 1150, h) * S01(10, 28, slope);
|
||||
if (mz > 0 && g > 1e-4f)
|
||||
{
|
||||
float dx = -gx / g, dz = -gz / g;
|
||||
float depth = 13f * GullyStripes(wx, wz, dx, dz, 380f, 1);
|
||||
if (fine) depth += 4f * GullyStripes(wx, wz, dx, dz, 140f, 2);
|
||||
d -= mz * depth;
|
||||
float bm = S01(0.0f, 0.35f, (float)Noise.Perlin(wx / 5200 + 14.2, wz / 5200 - 30.3))
|
||||
* S01(13, 20, slope) * S01(46, 36, slope) * S01(850, 1250, h);
|
||||
if (bm > 0)
|
||||
{
|
||||
const float step = 70f;
|
||||
float hh = h + 22f * (float)Noise.Perlin(wx / 1600 - 4.4, wz / 1600 + 8.8);
|
||||
float t = hh / step - Mathf.Floor(hh / step);
|
||||
d -= bm * 0.55f * step * (t - t * t * t); // t^3 <= t: lowers only, leaving level shelves
|
||||
}
|
||||
}
|
||||
return d;
|
||||
}
|
||||
|
||||
static float Pow(float x, int p) { float r = 1; for (int i = 0; i < p; i++) r *= x; return r; }
|
||||
|
||||
/// <summary>Stripes running along (dx, dz), built around jittered points of a lattice so the pattern stays
|
||||
/// coherent whichever way the slope faces. 1 in a gully floor, ~0 between gullies.</summary>
|
||||
static float GullyStripes(double wx, double wz, float dx, float dz, float lambda, int seed)
|
||||
{
|
||||
double C = lambda * 1.2;
|
||||
long cx0 = (long)Math.Floor(wx / C), cz0 = (long)Math.Floor(wz / C);
|
||||
float px = -dz, pz = dx, sum = 0, wsum = 0, inv = 1f / (float)(C * C);
|
||||
for (int b = -1; b <= 1; b++)
|
||||
for (int a = -1; a <= 1; a++)
|
||||
{
|
||||
long ci = cx0 + a, cj = cz0 + b;
|
||||
uint hs = Hash(ci, cj, seed);
|
||||
float ox = (float)(wx - (ci + U01(hs)) * C), oz = (float)(wz - (cj + U01(hs * 747796405u + 1)) * C);
|
||||
float w = Mathf.Exp(-(ox * ox + oz * oz) * inv * 2.2f);
|
||||
float phase = (ox * px + oz * pz) / lambda * 2 * Mathf.PI + U01(hs ^ 0x9E3779B9u) * 2 * Mathf.PI;
|
||||
sum += w * Mathf.Cos(phase); wsum += w;
|
||||
}
|
||||
float s = sum / Mathf.Max(wsum, 1e-6f);
|
||||
float v = (1 - s) * 0.5f;
|
||||
return v * v * v;
|
||||
}
|
||||
|
||||
static uint Hash(long x, long y, int s)
|
||||
{
|
||||
unchecked
|
||||
{
|
||||
uint h = (uint)(x * 374761393L + y * 668265263L + s * 1442695041L);
|
||||
h = (h ^ (h >> 13)) * 1274126177u;
|
||||
return h ^ (h >> 16);
|
||||
}
|
||||
}
|
||||
static float U01(uint h) => (h & 0xFFFFFF) / 16777216f;
|
||||
|
||||
/// <summary>Makes every shared tile edge identical on both sides. Neighbouring tiles compute their common edge
|
||||
/// independently, and the 16-bit heightmap can round the two copies to adjacent steps (~0.22 m). Tiles are
|
||||
/// visited from the south-west, each taking its west and south edges from the neighbour already fixed; a fine
|
||||
/// (2049) edge next to a 1025 tile follows the coarse samples, interpolated in between.</summary>
|
||||
public static int StitchSeams(Terrain[] terrains)
|
||||
{
|
||||
var byIndex = new Dictionary<(int, int), TerrainData>();
|
||||
foreach (var t in terrains)
|
||||
{
|
||||
if (!t.name.StartsWith("Tile ")) continue;
|
||||
var p = t.name.Substring(5).Split('-');
|
||||
byIndex[(int.Parse(p[0]), int.Parse(p[1]))] = t.terrainData;
|
||||
}
|
||||
int changed = 0;
|
||||
void Pass()
|
||||
{
|
||||
for (int tz = 0; tz < TilesZ; tz++)
|
||||
for (int tx = 0; tx < TilesX; tx++)
|
||||
{
|
||||
if (!byIndex.TryGetValue((tx, tz), out var td)) continue;
|
||||
if (byIndex.TryGetValue((tx - 1, tz), out var w)) changed += StitchEdge(w, td, column: true);
|
||||
if (byIndex.TryGetValue((tx, tz - 1), out var s)) changed += StitchEdge(s, td, column: false);
|
||||
EditorUtility.SetDirty(td);
|
||||
}
|
||||
}
|
||||
Pass();
|
||||
// tile corners: one shared value, rounded to an even step, so both corners of every edge have the same
|
||||
// parity and a fine edge can follow its coarse neighbour exactly all the way along; then stitch again
|
||||
for (int cz = 0; cz <= TilesZ; cz++)
|
||||
for (int cx = 0; cx <= TilesX; cx++)
|
||||
{
|
||||
var owners = new List<(TerrainData td, bool east, bool north)>();
|
||||
foreach (var (dx, dz) in new[] { (-1, -1), (0, -1), (-1, 0), (0, 0) })
|
||||
if (byIndex.TryGetValue((cx + dx, cz + dz), out var t)) owners.Add((t, dx < 0, dz < 0));
|
||||
if (owners.Count == 0) continue;
|
||||
int Px(TerrainData t, bool e) => e ? t.heightmapResolution - 1 : 0;
|
||||
var o0 = owners[0];
|
||||
int q = Qz(o0.td.GetHeights(Px(o0.td, o0.east), Px(o0.td, o0.north), 1, 1)[0, 0]);
|
||||
if ((q & 1) != 0) q += q < (int)HeightSteps ? 1 : -1;
|
||||
foreach (var (t, e, nn) in owners) t.SetHeightsDelayLOD(Px(t, e), Px(t, nn), new float[,] { { q / HeightSteps } });
|
||||
}
|
||||
Pass();
|
||||
foreach (var td in byIndex.Values) td.SyncHeightmap();
|
||||
return changed;
|
||||
}
|
||||
|
||||
/// <summary>Paint continuity where a 1024 splat map meets a 512 one: the coarse tile can only show its edge as a
|
||||
/// straight blend between 122 m texels, so the fine tile's edge texels take those values (blending back to its
|
||||
/// own painting over 3 texels, ~180 m). Same-resolution neighbours already share identical edge texels.</summary>
|
||||
public static int StitchSplats(Terrain[] terrains)
|
||||
{
|
||||
var byIndex = new Dictionary<(int, int), TerrainData>();
|
||||
foreach (var t in terrains)
|
||||
{
|
||||
if (!t.name.StartsWith("Tile ")) continue;
|
||||
var p = t.name.Substring(5).Split('-');
|
||||
byIndex[(int.Parse(p[0]), int.Parse(p[1]))] = t.terrainData;
|
||||
}
|
||||
const int Band = 3; int edges = 0;
|
||||
foreach (var kv in byIndex)
|
||||
{
|
||||
var fine = kv.Value; int A = fine.alphamapResolution, L = fine.alphamapLayers;
|
||||
var (tx, tz) = kv.Key; float[,,] map = null;
|
||||
foreach (var (dx, dz) in new[] { (-1, 0), (1, 0), (0, -1), (0, 1) })
|
||||
{
|
||||
if (!byIndex.TryGetValue((tx + dx, tz + dz), out var nb) || nb.alphamapResolution >= A) continue;
|
||||
map ??= fine.GetAlphamaps(0, 0, A, A);
|
||||
int C = nb.alphamapResolution; bool col = dx != 0;
|
||||
// the neighbour's texels on the shared edge
|
||||
var e = col ? nb.GetAlphamaps(dx < 0 ? C - 1 : 0, 0, 1, C) : nb.GetAlphamaps(0, dz < 0 ? C - 1 : 0, C, 1);
|
||||
for (int k = 0; k < A; k++)
|
||||
{
|
||||
float x = (float)k / (A - 1) * (C - 1); int c0 = Mathf.Min((int)x, C - 2); float t = x - c0;
|
||||
for (int b = 0; b <= Band; b++)
|
||||
{
|
||||
float w = Mathf.SmoothStep(0, 1, 1 - (float)b / (Band + 1));
|
||||
int i = col ? (dx < 0 ? b : A - 1 - b) : k, j = col ? k : (dz < 0 ? b : A - 1 - b);
|
||||
for (int l = 0; l < L; l++)
|
||||
{
|
||||
float ev = col ? Mathf.Lerp(e[c0, 0, l], e[c0 + 1, 0, l], t) : Mathf.Lerp(e[0, c0, l], e[0, c0 + 1, l], t);
|
||||
map[j, i, l] = Mathf.Lerp(map[j, i, l], ev, w);
|
||||
}
|
||||
}
|
||||
}
|
||||
edges++;
|
||||
}
|
||||
if (map != null) { fine.SetAlphamaps(0, 0, map); EditorUtility.SetDirty(fine); }
|
||||
}
|
||||
return edges;
|
||||
}
|
||||
|
||||
// Heights are stored as integers 0..32766.
|
||||
const float HeightSteps = 32766f;
|
||||
static int Qz(float h) => Mathf.RoundToInt(h * HeightSteps);
|
||||
|
||||
/// <summary>Copies the shared edge of `a` (west or south neighbour, already final) onto `b`. Where one side is a
|
||||
/// fine tile, the coarse-lattice samples must all have the same parity so the in-between fine samples can be
|
||||
/// stored as exact midpoints; samples between the two corners are nudged by one step (0.44 m) where needed.</summary>
|
||||
static int StitchEdge(TerrainData a, TerrainData b, bool column)
|
||||
{
|
||||
int ra = a.heightmapResolution, rb = b.heightmapResolution;
|
||||
float[] Read(TerrainData t, int r, bool last)
|
||||
{
|
||||
var g = column ? t.GetHeights(last ? r - 1 : 0, 0, 1, r) : t.GetHeights(0, last ? r - 1 : 0, r, 1);
|
||||
var o = new float[r]; for (int k = 0; k < r; k++) o[k] = column ? g[k, 0] : g[0, k]; return o;
|
||||
}
|
||||
void Write(TerrainData t, int r, bool last, int[] q)
|
||||
{
|
||||
var g = column ? new float[r, 1] : new float[1, r];
|
||||
for (int k = 0; k < r; k++) { float v = q[k] / HeightSteps; if (column) g[k, 0] = v; else g[0, k] = v; }
|
||||
if (column) t.SetHeightsDelayLOD(last ? r - 1 : 0, 0, g); else t.SetHeightsDelayLOD(0, last ? r - 1 : 0, g);
|
||||
}
|
||||
var ea = Read(a, ra, true); var before = Read(b, rb, false);
|
||||
int rc = Mathf.Min(ra, rb), rf = Mathf.Max(ra, rb), f = (rf - 1) / (rc - 1);
|
||||
var fineSide = ra > rb ? ea : null;
|
||||
// coarse-lattice samples of the shared edge, taken from `a`
|
||||
var qc = new int[rc];
|
||||
for (int k = 0; k < rc; k++) qc[k] = Qz(ea[ra > rb ? k * f : k]);
|
||||
if (f > 1)
|
||||
{
|
||||
int p = qc[0] & 1;
|
||||
for (int k = 1; k < rc - 1; k++)
|
||||
if ((qc[k] & 1) != p) qc[k] += qc[k] * 2 < qc[k - 1] + qc[k + 1] ? 1 : -1;
|
||||
}
|
||||
var qf = new int[rf];
|
||||
for (int k = 0; k < rf; k++)
|
||||
{
|
||||
int c0 = k / f, m = k - c0 * f;
|
||||
qf[k] = m == 0 ? qc[c0] : qc[c0] + (qc[c0 + 1] - qc[c0]) * m / f; // exact when the parities match
|
||||
}
|
||||
if (ra == rb) { Write(b, rb, false, qc); }
|
||||
else if (ra < rb) { Write(a, ra, true, qc); Write(b, rb, false, qf); } // coarse a, fine b
|
||||
else { Write(a, ra, true, qf); Write(b, rb, false, qc); } // fine a, coarse b
|
||||
var after = Read(b, rb, false); int n = 0;
|
||||
for (int k = 0; k < rb; k++) if (after[k] != before[k]) n++;
|
||||
return n;
|
||||
}
|
||||
|
||||
// ---------- graded passes through the eastern range ----------
|
||||
public class Route
|
||||
{
|
||||
public string name;
|
||||
public List<Vector2> p = new List<Vector2>();
|
||||
public List<float> T = new List<float>(); // graded surface height (true metres)
|
||||
public float lengthKm, maxGrade, maxCut, maxFill, summit; public int fords;
|
||||
}
|
||||
static List<Route> routes = new List<Route>();
|
||||
static List<(int r, int k)>[] routeBuckets; static int rbW, rbH;
|
||||
const float RouteBucket = 1000f, RouteCore = 30f, RouteFade = 170f, RouteGrade = 0.25f; // world grade (~14 deg)
|
||||
static readonly (Vector2 a, Vector2 b, string name)[] RouteEnds =
|
||||
{
|
||||
(new Vector2(227980, 64870), new Vector2(125000, 0), "Tarn pass (start area to the eastern approach)"),
|
||||
(new Vector2(140000, -40000), new Vector2(290000, -20000), "Southern pass"),
|
||||
(new Vector2(100000, 115000), new Vector2(158000, 170000), "Northern pass"),
|
||||
};
|
||||
|
||||
static void BuildRoutes()
|
||||
{
|
||||
routes = new List<Route>(); routeBuckets = null;
|
||||
foreach (var (a, b, name) in RouteEnds)
|
||||
{
|
||||
var path = LeastCostPath(a, b, 250f);
|
||||
if (path != null) routes.Add(MakeRoute(path, name));
|
||||
}
|
||||
rbW = Mathf.CeilToInt(WorldSizeX / RouteBucket) + 2; rbH = Mathf.CeilToInt(WorldSizeZ / RouteBucket) + 2;
|
||||
var bk = new List<(int, int)>[rbW * rbH];
|
||||
for (int r = 0; r < routes.Count; r++)
|
||||
{
|
||||
var p = routes[r].p;
|
||||
for (int k = 0; k + 1 < p.Count; k++)
|
||||
{
|
||||
float x0 = Mathf.Min(p[k].x, p[k + 1].x) - RouteFade, x1 = Mathf.Max(p[k].x, p[k + 1].x) + RouteFade;
|
||||
float z0 = Mathf.Min(p[k].y, p[k + 1].y) - RouteFade, z1 = Mathf.Max(p[k].y, p[k + 1].y) + RouteFade;
|
||||
for (int bz = RB(z0, WorldSizeZ, rbH); bz <= RB(z1, WorldSizeZ, rbH); bz++)
|
||||
for (int bx = RB(x0, WorldSizeX, rbW); bx <= RB(x1, WorldSizeX, rbW); bx++)
|
||||
(bk[bz * rbW + bx] ??= new List<(int, int)>()).Add((r, k));
|
||||
}
|
||||
}
|
||||
routeBuckets = bk;
|
||||
}
|
||||
static int RB(float v, float size, int n) => Mathf.Clamp((int)((v + size / 2) / RouteBucket) + 1, 0, n - 1);
|
||||
|
||||
/// <summary>Weight (1 on the graded strip, 0 beyond RouteFade) of the nearest route, its graded height T and the
|
||||
/// distance d to its centre line.</summary>
|
||||
static float RouteWeight(double wx, double wz, out float T, out float d)
|
||||
{
|
||||
T = 0; d = float.MaxValue;
|
||||
if (routeBuckets == null) return 0;
|
||||
var list = routeBuckets[RB((float)wz, WorldSizeZ, rbH) * rbW + RB((float)wx, WorldSizeX, rbW)];
|
||||
if (list == null) return 0;
|
||||
var pt = new Vector2((float)wx, (float)wz);
|
||||
foreach (var (r, k) in list)
|
||||
{
|
||||
var p = routes[r].p; Vector2 a = p[k], ab = p[k + 1] - a;
|
||||
float t = Mathf.Clamp01(Vector2.Dot(pt - a, ab) / Mathf.Max(ab.sqrMagnitude, 1e-6f));
|
||||
float dd = (a + ab * t - pt).magnitude;
|
||||
if (dd < d) { d = dd; T = Mathf.Lerp(routes[r].T[k], routes[r].T[k + 1], t); }
|
||||
}
|
||||
return d >= RouteFade ? 0 : S01(RouteFade, RouteCore, d);
|
||||
}
|
||||
|
||||
/// <summary>Cheapest walk between two points over a 250 m grid: steep grades cost far more than distance,
|
||||
/// high ground a little more, lakes and the sea are avoided. Finds valleys and saddles through the range.</summary>
|
||||
static List<Vector2> LeastCostPath(Vector2 a, Vector2 b, float cell)
|
||||
{
|
||||
const float pad = 25000;
|
||||
float x0 = Mathf.Min(a.x, b.x) - pad, z0 = Mathf.Min(a.y, b.y) - pad;
|
||||
int W = (int)((Mathf.Max(a.x, b.x) + pad - x0) / cell) + 1, H = (int)((Mathf.Max(a.y, b.y) + pad - z0) / cell) + 1;
|
||||
var h = new float[W * H]; var block = new byte[W * H]; // 1 lake, 2 sea
|
||||
Parallel.For(0, H, j =>
|
||||
{
|
||||
for (int i = 0; i < W; i++)
|
||||
{
|
||||
double x = x0 + i * cell, z = z0 + j * cell;
|
||||
float d = HeightNoWater(x, z); h[j * W + i] = d;
|
||||
ApplyWater(d, x, z, out float wet, out float infl);
|
||||
block[j * W + i] = (byte)(d < 1f ? 2 : wet > 0.6f ? 1 : infl > 0.6f ? 3 : 0); // 3: river channel
|
||||
}
|
||||
});
|
||||
int Idx(Vector2 p) => Mathf.Clamp(Mathf.RoundToInt((p.y - z0) / cell), 0, H - 1) * W + Mathf.Clamp(Mathf.RoundToInt((p.x - x0) / cell), 0, W - 1);
|
||||
int s0 = Idx(a), s1 = Idx(b);
|
||||
var dist = new float[W * H]; var prev = new int[W * H];
|
||||
for (int i = 0; i < dist.Length; i++) { dist[i] = float.MaxValue; prev[i] = -1; }
|
||||
var heap = new MinHeap(); dist[s0] = 0; heap.Push(0, s0);
|
||||
float ve = VerticalExaggeration;
|
||||
int[] di = { 1, -1, 0, 0, 1, 1, -1, -1 }, dj = { 0, 0, 1, -1, 1, -1, 1, -1 };
|
||||
while (heap.Count > 0)
|
||||
{
|
||||
var (c, u) = heap.Pop();
|
||||
if (c > dist[u]) continue;
|
||||
if (u == s1) break;
|
||||
int ui = u % W, uj = u / W;
|
||||
for (int q = 0; q < 8; q++)
|
||||
{
|
||||
int vi = ui + di[q], vj = uj + dj[q];
|
||||
if (vi < 0 || vj < 0 || vi >= W || vj >= H) continue;
|
||||
int v = vj * W + vi;
|
||||
if (block[v] == 2 && v != s1) continue;
|
||||
float len = q < 4 ? cell : cell * 1.41421f;
|
||||
float gr = Mathf.Abs(h[v] - h[u]) * ve / len, x = gr / RouteGrade;
|
||||
float step = len * (1 + 6 * x * x * x * x + Mathf.Max(0, h[v] - 600) / 1500f);
|
||||
if (block[v] == 1) step *= 60;
|
||||
else if (block[v] == 3) step *= 4; // cross rivers, don't walk along inside them
|
||||
float nc = c + step;
|
||||
if (nc < dist[v]) { dist[v] = nc; prev[v] = u; heap.Push(nc, v); }
|
||||
}
|
||||
}
|
||||
if (prev[s1] < 0) return null;
|
||||
var path = new List<Vector2>();
|
||||
for (int u = s1; u >= 0; u = prev[u]) path.Add(new Vector2(x0 + (u % W) * cell, z0 + (u / W) * cell));
|
||||
path.Reverse();
|
||||
path[0] = a; path[path.Count - 1] = b;
|
||||
return path;
|
||||
}
|
||||
|
||||
class MinHeap
|
||||
{
|
||||
readonly List<(float c, int v)> a = new List<(float, int)>();
|
||||
public int Count => a.Count;
|
||||
public void Push(float c, int v)
|
||||
{
|
||||
a.Add((c, v)); int i = a.Count - 1;
|
||||
while (i > 0) { int p = (i - 1) / 2; if (a[p].c <= a[i].c) break; (a[p], a[i]) = (a[i], a[p]); i = p; }
|
||||
}
|
||||
public (float, int) Pop()
|
||||
{
|
||||
var top = a[0]; a[0] = a[a.Count - 1]; a.RemoveAt(a.Count - 1);
|
||||
int i = 0;
|
||||
while (true)
|
||||
{
|
||||
int l = 2 * i + 1, r = l + 1, m = i;
|
||||
if (l < a.Count && a[l].c < a[m].c) m = l;
|
||||
if (r < a.Count && a[r].c < a[m].c) m = r;
|
||||
if (m == i) break;
|
||||
(a[m], a[i]) = (a[i], a[m]); i = m;
|
||||
}
|
||||
return top;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Smooths the grid path, then grades its height profile: follow the ground (averaged over ±300 m) but
|
||||
/// never steeper than RouteGrade, spreading cut and fill evenly.</summary>
|
||||
static Route MakeRoute(List<Vector2> path, string name)
|
||||
{
|
||||
var pts = path;
|
||||
for (int it = 0; it < 4; it++)
|
||||
{
|
||||
var c = new List<Vector2> { pts[0] };
|
||||
for (int k = 0; k + 1 < pts.Count; k++) { c.Add(Vector2.Lerp(pts[k], pts[k + 1], 0.25f)); c.Add(Vector2.Lerp(pts[k], pts[k + 1], 0.75f)); }
|
||||
c.Add(pts[pts.Count - 1]); pts = c;
|
||||
}
|
||||
const float ds = 20f;
|
||||
var rp = new List<Vector2> { pts[0] }; float carry = 0;
|
||||
for (int k = 0; k + 1 < pts.Count; k++)
|
||||
{
|
||||
Vector2 a = pts[k], b = pts[k + 1]; float L = Vector2.Distance(a, b), t = ds - carry;
|
||||
while (t <= L) { rp.Add(Vector2.Lerp(a, b, t / L)); t += ds; }
|
||||
carry = L - (t - ds);
|
||||
}
|
||||
rp.Add(pts[pts.Count - 1]);
|
||||
int n = rp.Count;
|
||||
var H = new float[n];
|
||||
Parallel.For(0, n, k => H[k] = HeightNoWater(rp[k].x, rp[k].y));
|
||||
var Hs = new float[n];
|
||||
for (int k = 0; k < n; k++)
|
||||
{
|
||||
float s = 0; int c = 0;
|
||||
for (int q = Math.Max(0, k - 15); q <= Math.Min(n - 1, k + 15); q++) { s += H[q]; c++; }
|
||||
Hs[k] = s / c;
|
||||
}
|
||||
var T = (float[])Hs.Clone();
|
||||
// fords: where the route crosses a river channel its surface sits just under the water level
|
||||
var fixedAt = new bool[n]; int fords = 0;
|
||||
for (int k = 0; k < n; k++)
|
||||
foreach (var (st, rr, w, lvl, s) in NearReaches(rp[k].x, rp[k].y))
|
||||
if (lvl > 0.3f && rr < Mathf.Max(0.6f * w + 10f, 50f))
|
||||
{
|
||||
float t = lvl - 0.1f;
|
||||
if (!fixedAt[k] || t < T[k]) T[k] = t;
|
||||
if (!fixedAt[k] && (k == 0 || !fixedAt[k - 1])) fords++;
|
||||
fixedAt[k] = true;
|
||||
}
|
||||
float gmax = RouteGrade / VerticalExaggeration * ds; // true metres per step
|
||||
for (int it = 0; it < 20000; it++)
|
||||
{
|
||||
bool any = false;
|
||||
bool fwd = (it & 1) == 0;
|
||||
for (int q = 0; q + 1 < n; q++)
|
||||
{
|
||||
int k = fwd ? q : n - 2 - q;
|
||||
float diff = T[k + 1] - T[k];
|
||||
if (Mathf.Abs(diff) <= gmax + 1e-4f) continue;
|
||||
float e = (Mathf.Abs(diff) - gmax) * Mathf.Sign(diff);
|
||||
if (fixedAt[k] && fixedAt[k + 1]) continue;
|
||||
if (fixedAt[k]) T[k + 1] -= e; // the ford stays put; the approach moves
|
||||
else if (fixedAt[k + 1]) T[k] += e;
|
||||
else { T[k] += e * 0.5f; T[k + 1] -= e * 0.5f; }
|
||||
any = true;
|
||||
}
|
||||
if (!any) break;
|
||||
}
|
||||
var r = new Route { name = name, p = rp, T = new List<float>(T), lengthKm = n * ds / 1000f, fords = fords };
|
||||
for (int k = 0; k < n; k++)
|
||||
{
|
||||
r.maxCut = Mathf.Max(r.maxCut, H[k] - T[k]); r.maxFill = Mathf.Max(r.maxFill, T[k] - H[k]);
|
||||
r.summit = Mathf.Max(r.summit, T[k]);
|
||||
if (k + 1 < n) r.maxGrade = Mathf.Max(r.maxGrade, Mathf.Abs(T[k + 1] - T[k]) * VerticalExaggeration / ds);
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
public static string RouteSummary()
|
||||
{
|
||||
if (fields == null) Prepare();
|
||||
var sb = new System.Text.StringBuilder();
|
||||
foreach (var r in routes)
|
||||
sb.AppendLine($"{r.name}: {r.lengthKm:F1} km, high point {r.summit * VerticalExaggeration:F0} (world), max grade {r.maxGrade * 100:F1}% " +
|
||||
$"({Mathf.Atan(r.maxGrade) * Mathf.Rad2Deg:F1} deg), max cut {r.maxCut * VerticalExaggeration:F0} / fill {r.maxFill * VerticalExaggeration:F0} (world m), {r.fords} fords");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>Debug: the routes drawn over a hillshaded height map of a region.</summary>
|
||||
public static string RouteMap(float x0, float z0, float x1, float z1, int w, string path)
|
||||
{
|
||||
if (fields == null) Prepare();
|
||||
int hgt = Mathf.RoundToInt(w * (z1 - z0) / (x1 - x0));
|
||||
var hm = new float[w * hgt];
|
||||
Parallel.For(0, hgt, y =>
|
||||
{
|
||||
for (int x = 0; x < w; x++)
|
||||
hm[y * w + x] = Height(x0 + (x + 0.5) / w * (x1 - x0), z1 - (y + 0.5) / hgt * (z1 - z0));
|
||||
});
|
||||
WritePreview(hm, w, hgt, (x1 - x0) / w, path);
|
||||
var tex = new Texture2D(2, 2); tex.LoadImage(File.ReadAllBytes(path));
|
||||
foreach (var r in routes)
|
||||
foreach (var p in r.p)
|
||||
{
|
||||
int px = (int)((p.x - x0) / (x1 - x0) * w), py = (int)((p.y - z0) / (z1 - z0) * hgt);
|
||||
for (int dy = -1; dy <= 1; dy++) for (int dx = -1; dx <= 1; dx++)
|
||||
if (px + dx >= 0 && py + dy >= 0 && px + dx < w && py + dy < hgt) tex.SetPixel(px + dx, py + dy, new Color(0.9f, 0.1f, 0.1f));
|
||||
}
|
||||
tex.Apply(); File.WriteAllBytes(path, tex.EncodeToPNG()); UnityEngine.Object.DestroyImmediate(tex);
|
||||
return RouteSummary();
|
||||
}
|
||||
|
||||
// ---------- painting ----------
|
||||
// Layer order (see LayerDefs): 0 lowland, 1 plains, 2 foothills, 3 mountains (tan), 4 high mountains (grey),
|
||||
// 5 snow, 6 riverbed, 7 rock, 8 dry grass, 9 scree, 10 dirt, 11 shingle.
|
||||
const int LDry = 8, LScree = 9, LDirt = 10, LShingle = 11;
|
||||
|
||||
static void Move(float[] w, int from, int to, float frac)
|
||||
{
|
||||
float m = w[from] * Mathf.Clamp01(frac); w[from] -= m; w[to] += m;
|
||||
}
|
||||
static void MoveAll(float[] w, int to, float frac)
|
||||
{
|
||||
frac = Mathf.Clamp01(frac);
|
||||
for (int k = 0; k < w.Length; k++) if (k != to) { float m = w[k] * frac; w[k] -= m; w[to] += m; }
|
||||
}
|
||||
|
||||
/// <summary>Splat weights. slopeDeg: world-unit slope over ~61 m; curv: mean height of a 120 m ring minus the
|
||||
/// height (world metres, + in hollows and gullies, - on knolls and ribs); wet/infl from ApplyWater; route: 0..1.</summary>
|
||||
static void PaintWeights(float h, float slopeDeg, float curv, double wx, double wz, float wet, float infl, float route, float[] wts)
|
||||
{
|
||||
Array.Clear(wts, 0, wts.Length);
|
||||
float jitter = (float)(Noise.Fbm(wx / 6000 + 3.3, wz / 6000 - 8.8, 4) * 70);
|
||||
BandWeights(h + jitter, wts);
|
||||
|
||||
// grass variety: dry meadow on rises and in patches, lush green in hollows and swales, bare knolls
|
||||
if (wts[0] + wts[1] + wts[2] > 0)
|
||||
{
|
||||
float n1 = (float)Noise.Fbm(wx / 1900 + 8.1, wz / 1900 - 3.7, 3), n2 = (float)Noise.Perlin(wx / 430 - 9.2, wz / 430 + 1.6);
|
||||
float lush = S01(0.8f, 3.5f, curv) * 0.6f;
|
||||
Move(wts, 0, 2, lush); Move(wts, 1, 2, lush);
|
||||
float dry = S01(0.05f, 0.4f, n1 + 0.35f * n2) * 0.5f + S01(-1.5f, -5f, curv) * 0.25f;
|
||||
for (int k = 0; k <= 2; k++) Move(wts, k, LDry, dry * (1 - lush));
|
||||
float bare = S01(0.5f, 0.72f, (float)Noise.Fbm(wx / 260 + 5.5, wz / 260 + 2.2, 2)) * S01(6, 16, slopeDeg) * 0.55f;
|
||||
for (int k = 0; k <= 2; k++) Move(wts, k, LDirt, bare);
|
||||
Move(wts, LDry, LDirt, bare);
|
||||
}
|
||||
|
||||
// snow holds on gentler slopes; wind-scoured ribs and patches show grey rock through long snowfields
|
||||
float scour = S01(0.2f, 0.5f, (float)Noise.Fbm(wx / 900 - 2.1, wz / 900 + 7.7, 3) - 0.03f * curv);
|
||||
float snowKeep = Mathf.InverseLerp(40, 28, slopeDeg) * (1 - 0.6f * scour);
|
||||
wts[4] += wts[5] * (1 - snowKeep); wts[5] *= snowKeep;
|
||||
float rock = Mathf.Clamp01(Mathf.InverseLerp(34, 50, slopeDeg) + S01(-3f, -12f, curv) * S01(24, 34, slopeDeg) * 0.5f
|
||||
+ scour * S01(26, 36, slopeDeg) * 0.4f);
|
||||
if (CutOutsideOutline && h <= 1f) rock = 1; // diorama walls
|
||||
MoveAll(wts, 7, rock);
|
||||
// scree: talus under cliffs and gully floors, between the rock and the grass or snow
|
||||
float scree = (S01(24, 31, slopeDeg) * S01(46, 37, slopeDeg) * 0.55f + S01(1.5f, 6f, curv) * S01(14, 24, slopeDeg) * 0.6f)
|
||||
* S01(850, 1150, h) * (1 - 0.7f * wts[5]);
|
||||
MoveAll(wts, LScree, scree);
|
||||
|
||||
if (!CutOutsideOutline)
|
||||
{
|
||||
// beaches just above sea level: sand and shingle
|
||||
float beach = Mathf.InverseLerp(9, 2, h) * Mathf.InverseLerp(28, 14, slopeDeg);
|
||||
MoveAll(wts, 3, beach * 0.6f); MoveAll(wts, LShingle, beach * 0.4f);
|
||||
// river banks and lake shores: a gravel margin where the ground meets the water
|
||||
MoveAll(wts, LShingle, S01(0.08f, 0.5f, infl) * S01(28, 12, slopeDeg) * 0.7f * (1 - wet));
|
||||
// graded passes: a worn track down the middle (route: 0..1 on the track's centre strip)
|
||||
MoveAll(wts, LDirt, route * 0.5f);
|
||||
if (h < 0)
|
||||
{
|
||||
// seafloor under the ocean surface: sand in the shallows, dark silt deeper
|
||||
float sand = Mathf.InverseLerp(-45, -4, h);
|
||||
Array.Clear(wts, 0, wts.Length);
|
||||
wts[3] = sand; wts[6] = 1 - sand; wet = 0;
|
||||
}
|
||||
}
|
||||
MoveAll(wts, 6, wet);
|
||||
float sum = 0; for (int k = 0; k < wts.Length; k++) sum += wts[k];
|
||||
for (int k = 0; k < wts.Length; k++) wts[k] /= sum;
|
||||
}
|
||||
|
||||
// ---------- layer textures (procedural, seamless, with normal maps) ----------
|
||||
enum Surface { Grass, Soil, Rock, Snow, Gravel, Mud }
|
||||
|
||||
/// <summary>Repeat length (metres) of each layer. Snapped so every tile holds a whole number of repeats,
|
||||
/// which keeps the texture continuous across tile edges. Keep the repeat long (40 m+ for 1024 px): Unity's
|
||||
/// terrain shader computes texture coordinates as tile-fraction x repeats-per-tile in 32-bit floats, and with
|
||||
/// millions of texels across a 62.5 km tile the coordinates lose precision toward the tile's far edges; the
|
||||
/// texture then smears there and a sharp step shows where the next tile starts again near zero.</summary>
|
||||
static Vector2 LayerTileSize(float metres) =>
|
||||
new Vector2(TileW / Mathf.Max(1, Mathf.Round(TileW / metres)), TileD / Mathf.Max(1, Mathf.Round(TileD / metres)));
|
||||
|
||||
static int texSize = 512;
|
||||
static float TNoise(float x, float y, int period, int seed)
|
||||
{
|
||||
int x0 = Mathf.FloorToInt(x), y0 = Mathf.FloorToInt(y); float fx = x - x0, fy = y - y0;
|
||||
float G(int ix, int iy, float dx, float dy)
|
||||
{
|
||||
uint hs = Hash(((ix % period) + period) % period, ((iy % period) + period) % period, seed);
|
||||
float a = U01(hs) * 2 * Mathf.PI;
|
||||
return Mathf.Cos(a) * dx + Mathf.Sin(a) * dy;
|
||||
}
|
||||
float u = fx * fx * fx * (fx * (fx * 6 - 15) + 10), v = fy * fy * fy * (fy * (fy * 6 - 15) + 10);
|
||||
float a0 = Mathf.Lerp(G(x0, y0, fx, fy), G(x0 + 1, y0, fx - 1, fy), u);
|
||||
float a1 = Mathf.Lerp(G(x0, y0 + 1, fx, fy - 1), G(x0 + 1, y0 + 1, fx - 1, fy - 1), u);
|
||||
return Mathf.Lerp(a0, a1, v) * 1.4f;
|
||||
}
|
||||
static float TFbm(float u, float v, int period, int oct, int seed)
|
||||
{
|
||||
float s = 0, a = 1, n = 0;
|
||||
for (int o = 0; o < oct && period <= texSize / 2; o++) { s += a * TNoise(u * period, v * period, period, seed + 31 * o); n += a; a *= 0.5f; period *= 2; }
|
||||
if (n == 0) return 0;
|
||||
return s / n;
|
||||
}
|
||||
/// <summary>Periodic cell noise: distance to the nearest stone centre (0..~1) and that stone's id hash.</summary>
|
||||
static float TCells(float u, float v, int period, int seed, out uint id, out float edge)
|
||||
{
|
||||
float x = u * period, y = v * period; int x0 = Mathf.FloorToInt(x), y0 = Mathf.FloorToInt(y);
|
||||
float f1 = 9, f2 = 9; id = 0;
|
||||
for (int b = -1; b <= 1; b++) for (int a = -1; a <= 1; a++)
|
||||
{
|
||||
int cx = x0 + a, cy = y0 + b;
|
||||
uint hs = Hash(((cx % period) + period) % period, ((cy % period) + period) % period, seed);
|
||||
float px = cx + 0.15f + 0.7f * U01(hs), py = cy + 0.15f + 0.7f * U01(hs * 747796405u + 7);
|
||||
float d = Mathf.Sqrt((x - px) * (x - px) + (y - py) * (y - py));
|
||||
if (d < f1) { f2 = f1; f1 = d; id = hs; } else if (d < f2) f2 = d;
|
||||
}
|
||||
edge = f2 - f1;
|
||||
return f1;
|
||||
}
|
||||
|
||||
/// <summary>Scattered rounded stones (periodic): a dome height 0..1 where a stone lies, 0 between them.
|
||||
/// density: share of cells that hold a stone; stones vary in size and outline. tone: per-stone brightness.</summary>
|
||||
static float Stones(float u, float v, int period, int seed, float density, out float tone)
|
||||
{
|
||||
float x = u * period, y = v * period; int x0 = Mathf.FloorToInt(x), y0 = Mathf.FloorToInt(y);
|
||||
float best = 0; tone = 0.5f;
|
||||
float wob = 0.12f * TNoise(u * period * 3, v * period * 3, period * 3, seed + 99);
|
||||
for (int b = -1; b <= 1; b++) for (int a = -1; a <= 1; a++)
|
||||
{
|
||||
int cx = x0 + a, cy = y0 + b;
|
||||
uint hs = Hash(((cx % period) + period) % period, ((cy % period) + period) % period, seed);
|
||||
if (U01(hs >> 3) > density) continue;
|
||||
float px = cx + U01(hs), py = cy + U01(hs * 747796405u + 7);
|
||||
float rad = 0.22f + 0.3f * U01(hs * 2891336453u + 3);
|
||||
float ex = 0.7f + 0.6f * U01(hs * 1181783497u + 5); // elongation
|
||||
float dx = (x - px) * ex, dy = (y - py) / ex;
|
||||
float d = Mathf.Sqrt(dx * dx + dy * dy) / rad + wob;
|
||||
if (d < 1)
|
||||
{
|
||||
float dome = Mathf.Sqrt(1 - d * d);
|
||||
if (dome > best) { best = dome; tone = U01(hs * 3266489917u + 11); }
|
||||
}
|
||||
}
|
||||
return best;
|
||||
}
|
||||
|
||||
static void MakeLayerTexture(Surface kind, Color32 col, int seed, int size, out Color32[] albedo, out Color32[] normal, out float bumpScale)
|
||||
{
|
||||
// the texture covers ~40-64 m, so features are scaled up from a few-metre repeat by Sc
|
||||
const int Sc = 4; texSize = size;
|
||||
var hgt = new float[size * size]; var c = new Color[size * size];
|
||||
Color baseC = col;
|
||||
Parallel.For(0, size, y =>
|
||||
{
|
||||
for (int x = 0; x < size; x++)
|
||||
{
|
||||
float u = (float)x / size, v = (float)y / size, h; Color k;
|
||||
switch (kind)
|
||||
{
|
||||
case Surface.Grass:
|
||||
{
|
||||
float clumps = TFbm(u, v, 6 * Sc, 4, seed), grain = TFbm(u, v, 96 * Sc, 2, seed + 5), blades = TFbm(u, v, 48 * Sc, 3, seed + 9);
|
||||
float tint = Mathf.SmoothStep(0, 1, TFbm(u, v, 3 * Sc, 3, seed + 13) * 0.8f + 0.5f);
|
||||
h = 0.45f * clumps + 0.35f * blades + 0.2f * grain;
|
||||
k = Color.Lerp(baseC, new Color(baseC.r * 1.18f, baseC.g * 1.06f, baseC.b * 0.72f), tint * 0.45f);
|
||||
k *= 0.80f + 0.36f * (0.5f + 0.5f * h);
|
||||
if (grain < -0.35f) k *= 0.8f; // dark gaps between blades
|
||||
break;
|
||||
}
|
||||
case Surface.Soil:
|
||||
{
|
||||
float f = TFbm(u, v, 5 * Sc, 5, seed), grit = TFbm(u, v, 128 * Sc, 1, seed + 2);
|
||||
float st = Stones(u, v, 30 * Sc, seed + 3, 0.35f, out float tone);
|
||||
float st2 = Stones(u, v, 71 * Sc, seed + 4, 0.25f, out float tone2);
|
||||
h = 0.55f * f + 0.45f * st + 0.25f * st2 + 0.1f * grit;
|
||||
k = baseC * (0.84f + 0.26f * (0.5f + 0.5f * f)) * (0.93f + 0.1f * grit);
|
||||
var stoneC = new Color(0.6f, 0.58f, 0.54f);
|
||||
k = Color.Lerp(k, stoneC * (0.85f + 0.3f * tone), Mathf.Min(st, 1) * 0.4f);
|
||||
k = Color.Lerp(k, stoneC * (0.85f + 0.3f * tone2), Mathf.Min(st2, 1) * 0.3f);
|
||||
break;
|
||||
}
|
||||
case Surface.Rock:
|
||||
{
|
||||
float f = TFbm(u, v, 3 * Sc, 6, seed), r = 1 - Mathf.Abs(TFbm(u, v, 5 * Sc, 4, seed + 17));
|
||||
float strata = Mathf.Sin(2 * Mathf.PI * (v * 5 * Sc + 0.9f * TFbm(u, v, 2 * Sc, 3, seed + 23)));
|
||||
// cracks: thin, wandering dark lines along zero crossings of a warped noise
|
||||
float cn = Mathf.Abs(TFbm(u + 0.008f * TFbm(u, v, 4 * Sc, 2, seed + 51), v, 6 * Sc, 3, seed + 41));
|
||||
float crack = Mathf.InverseLerp(0.05f, 0.0f, cn) * (0.5f + 0.5f * Mathf.SmoothStep(0, 1, TFbm(u, v, 3 * Sc, 2, seed + 61) + 0.5f));
|
||||
float lichen = Mathf.SmoothStep(0, 1, (TFbm(u, v, 8 * Sc, 3, seed + 71) - 0.25f) * 3f);
|
||||
h = 0.5f * f + 0.35f * r * r + 0.1f * strata - 0.45f * crack;
|
||||
k = baseC * (0.8f + 0.32f * (0.5f + 0.5f * f) + 0.05f * strata) * (1 - 0.4f * crack);
|
||||
k = Color.Lerp(k, k * new Color(1.05f, 1.03f, 0.9f), lichen * 0.6f);
|
||||
break;
|
||||
}
|
||||
case Surface.Snow:
|
||||
{
|
||||
float f = TFbm(u, v, 3 * Sc, 4, seed), ripple = TFbm(u, v, 24 * Sc, 2, seed + 7);
|
||||
h = 0.75f * f + 0.25f * ripple;
|
||||
k = Color.Lerp(baseC, baseC * new Color(0.86f, 0.9f, 1.0f), Mathf.Clamp01(-h * 1.4f));
|
||||
k *= 0.95f + 0.07f * ripple;
|
||||
break;
|
||||
}
|
||||
case Surface.Gravel:
|
||||
{
|
||||
float big = Stones(u, v, 18 * Sc, seed, 0.85f, out float t1);
|
||||
float mid = Stones(u, v, 41 * Sc, seed + 1, 0.8f, out float t2);
|
||||
float grit = TFbm(u, v, 128 * Sc, 1, seed + 2);
|
||||
float cover = Mathf.Max(Mathf.Min(big, 1), Mathf.Min(mid, 1) * 0.9f);
|
||||
h = 0.7f * big + 0.35f * mid + 0.08f * grit;
|
||||
float tone = big > 0.05f ? t1 : t2;
|
||||
k = baseC * Mathf.Lerp(0.55f + 0.1f * grit, 0.8f + 0.42f * tone, cover);
|
||||
break;
|
||||
}
|
||||
default: // mud
|
||||
{
|
||||
float f = TFbm(u, v, 4 * Sc, 5, seed), st = Stones(u, v, 34 * Sc, seed + 3, 0.2f, out float tone);
|
||||
h = 0.5f * f + 0.35f * st;
|
||||
k = baseC * (0.85f + 0.25f * (0.5f + 0.5f * f));
|
||||
k = Color.Lerp(k, new Color(0.45f, 0.43f, 0.4f) * (0.85f + 0.3f * tone), Mathf.Min(st, 1) * 0.45f);
|
||||
break;
|
||||
}
|
||||
}
|
||||
hgt[y * size + x] = h; c[y * size + x] = k;
|
||||
}
|
||||
});
|
||||
// keep the layer's average colour on the legend colour (the top-down composition stays the same)
|
||||
double mr = 0, mg = 0, mb = 0;
|
||||
foreach (var k in c) { mr += k.r; mg += k.g; mb += k.b; }
|
||||
int N = c.Length; float sr = (float)(baseC.r / (mr / N)), sg = (float)(baseC.g / (mg / N)), sb = (float)(baseC.b / (mb / N));
|
||||
albedo = new Color32[N];
|
||||
for (int i = 0; i < N; i++) albedo[i] = new Color(Mathf.Clamp01(c[i].r * sr), Mathf.Clamp01(c[i].g * sg), Mathf.Clamp01(c[i].b * sb), 1);
|
||||
bumpScale = kind switch { Surface.Rock => 9f, Surface.Gravel => 7f, Surface.Soil => 6f, Surface.Mud => 4f, Surface.Snow => 3f, _ => 4.5f };
|
||||
var nrm = new Color32[N]; float bs = bumpScale;
|
||||
Parallel.For(0, size, y =>
|
||||
{
|
||||
for (int x = 0; x < size; x++)
|
||||
{
|
||||
float hl = hgt[y * size + (x + size - 1) % size], hr = hgt[y * size + (x + 1) % size];
|
||||
float hd = hgt[((y + size - 1) % size) * size + x], hu = hgt[((y + 1) % size) * size + x];
|
||||
var n = new Vector3((hl - hr) * bs, (hd - hu) * bs, 1).normalized;
|
||||
nrm[y * size + x] = new Color(n.x * 0.5f + 0.5f, n.y * 0.5f + 0.5f, n.z * 0.5f + 0.5f, 1);
|
||||
}
|
||||
});
|
||||
normal = nrm;
|
||||
}
|
||||
|
||||
static void ImportLayerTexture(string path, bool isNormal)
|
||||
{
|
||||
AssetDatabase.ImportAsset(path);
|
||||
if (!(AssetImporter.GetAtPath(path) is TextureImporter imp)) return;
|
||||
imp.textureType = isNormal ? TextureImporterType.NormalMap : TextureImporterType.Default;
|
||||
imp.sRGBTexture = !isNormal;
|
||||
imp.mipmapEnabled = true; imp.wrapMode = TextureWrapMode.Repeat;
|
||||
imp.filterMode = FilterMode.Trilinear; imp.anisoLevel = 8; imp.maxTextureSize = 1024;
|
||||
imp.SaveAndReimport();
|
||||
}
|
||||
|
||||
/// <summary>Terrain material with per-layer normal maps switched on (URP Terrain/Lit).</summary>
|
||||
static Material TerrainMaterial()
|
||||
{
|
||||
string path = OutputFolder + "/BowlValleyTerrain.mat";
|
||||
var mat = AssetDatabase.LoadAssetAtPath<Material>(path);
|
||||
if (!mat)
|
||||
{
|
||||
var sh = Shader.Find("Universal Render Pipeline/Terrain/Lit");
|
||||
if (!sh) return null;
|
||||
mat = new Material(sh) { name = "BowlValleyTerrain" };
|
||||
AssetDatabase.CreateAsset(mat, path);
|
||||
}
|
||||
mat.EnableKeyword("_NORMALMAP");
|
||||
mat.enableInstancing = true;
|
||||
EditorUtility.SetDirty(mat);
|
||||
return mat;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1f95249e5346c1dd09658e76c897ef05
|
||||
@@ -598,9 +598,17 @@ namespace TravelersQuest.World.Editor
|
||||
// ---------- carving ----------
|
||||
/// <summary>Carves lake basins (with a low rim where the shore would otherwise be lower than the water) and
|
||||
/// river channels into the dry terrain. wet: how much of the riverbed/lakebed texture belongs here.</summary>
|
||||
static float ApplyWater(float h, double wx, double wz, out float wet)
|
||||
static float ApplyWater(float h, double wx, double wz, out float wet) => ApplyWater(h, wx, wz, out wet, out _);
|
||||
|
||||
/// <summary>infl: how strongly water shapes the ground here (0 = not at all, 1 = channel or lake bed); the
|
||||
/// player-scale detail fades out with it so banks and shores stay as carved.
|
||||
/// While a tile lattice is being built (sampleCell > 0) river banks are fitted to the lattice spacing: the
|
||||
/// ground just beside the water rises into a low bank instead of the old flat strip at water level, and
|
||||
/// every ~1.8 km (and wherever a graded pass crosses) a gentle gravel approach leads down to the water.</summary>
|
||||
static float ApplyWater(float h, double wx, double wz, out float wet, out float infl)
|
||||
{
|
||||
wet = 0; float inLake = 0;
|
||||
wet = 0; infl = 0; float inLake = 0;
|
||||
float cellW = sampleCell; bool banks = cellW > 0;
|
||||
if (lakeBuckets != null)
|
||||
{
|
||||
var list = lakeBuckets[Mathf.Clamp((int)((wz + WorldSizeZ / 2) / LakeBucket) + 1, 0, lbH - 1) * lbW + Mathf.Clamp((int)((wx + WorldSizeX / 2) / LakeBucket) + 1, 0, lbW - 1)];
|
||||
@@ -619,7 +627,16 @@ namespace TravelersQuest.World.Editor
|
||||
wet = Mathf.Max(wet, inside);
|
||||
}
|
||||
float rim = (1 - inside) * S01(0.06f, 0.3f, LakeSample(L, L.m6, (float)wx, (float)wz));
|
||||
if (rim > 0) h = Mathf.Max(h, Mathf.Lerp(h, L.level + 1f, rim));
|
||||
float rimTop = L.level + 1f;
|
||||
if (banks && rim > 0)
|
||||
{
|
||||
// three gentle shore approaches per lake: the rim drops to just above the water there
|
||||
float ang = Mathf.Atan2((float)wz - L.c.y, (float)wx - L.c.x) / (2 * Mathf.PI) + U01(Hash(L.id, 7, 3));
|
||||
float apd = Mathf.Abs((ang * 3 - Mathf.Floor(ang * 3)) - 0.5f); // 0 at an approach
|
||||
rimTop -= 0.8f * S01(0.12f, 0.04f, apd);
|
||||
}
|
||||
if (rim > 0) h = Mathf.Max(h, Mathf.Lerp(h, rimTop, rim));
|
||||
infl = Mathf.Max(infl, Mathf.Max(inside, Mathf.Max(rim, S01(0.25f, 0.45f, LakeSample(L, L.m1, (float)wx, (float)wz)))));
|
||||
}
|
||||
}
|
||||
// every river within reach pulls the ground toward its own channel profile; the pulls are blended (not
|
||||
@@ -628,16 +645,32 @@ namespace TravelersQuest.World.Editor
|
||||
if (near.Count > 0)
|
||||
{
|
||||
float sumW = 0, sumT = 0, maxW = 0, jb = 0, jTop = 0;
|
||||
float routeW = banks ? RouteWeight(wx, wz, out _, out _) : 0;
|
||||
foreach (var (st, r, w, lvl, s) in near)
|
||||
{
|
||||
float F = Mathf.Max(0.6f * w + 10f, 50f), V = F + Mathf.Max(120f, 3f * w), D = 0.4f + 0.03f * w;
|
||||
float F = Mathf.Max(0.6f * w + 10f, 50f), V = F + Mathf.Max(120f, 3f * w), D = 0.4f + 0.03f * w, F0 = F;
|
||||
float target;
|
||||
if (!banks) target = lvl - 0.15f - D * (1 - S01(0.1f * w, 0.5f * w, r));
|
||||
else
|
||||
{
|
||||
// the nearest lattice sample can be half a cell from the centre line: keep the ground there just
|
||||
// under the water (so the surface always shows), then rise into a ~1.5 m (world) bank.
|
||||
// Approaches: no bank and a longer, gentler blend into the surrounding ground.
|
||||
float ph = U01(Hash((long)st.p[0].x, (long)st.p[0].y, 11));
|
||||
float q = s / 1800f + ph; q -= Mathf.Floor(q);
|
||||
float ap = Mathf.Max(S01(70f, 30f, Mathf.Abs(q - 0.5f) * 1800f), routeW);
|
||||
float half = 0.5f * w, bankStart = half + 0.55f * cellW, bw = Mathf.Max(12f, 0.4f * w);
|
||||
float bankH = 0.5f * (1 - ap);
|
||||
float Dd = D * Mathf.Clamp01(w / (2f * cellW)); // narrow creeks can't be resolved deeper than this
|
||||
F = Mathf.Max(F, bankStart + bw + 10f); V = F + Mathf.Max(120f, 3f * w) + 160f * ap;
|
||||
target = lvl - 0.08f - Dd * (1 - S01(0.1f * w, half, r)) + (bankH + 0.08f) * S01(bankStart, bankStart + bw, r);
|
||||
}
|
||||
float wgt = (r <= F ? 1f : S01(V, F, r)) * (1 - inLake);
|
||||
if (wgt <= 0) continue;
|
||||
float target = lvl - 0.15f - D * (1 - S01(0.1f * w, 0.5f * w, r));
|
||||
if (lvl <= 0.5f) target = Mathf.Min(h, target); // at sea: only deepen, never raise the seabed
|
||||
float k = wgt * wgt + 1e-4f; // nearer channels dominate where several overlap
|
||||
sumW += k; sumT += k * target; maxW = Mathf.Max(maxW, wgt);
|
||||
if (lvl > 0.3f) wet = Mathf.Max(wet, S01(1.3f * F, 0.7f * F, r) * Mathf.Clamp(w / 120f, 0f, 0.7f) * (1 - inLake));
|
||||
if (lvl > 0.3f) wet = Mathf.Max(wet, S01(1.3f * F0, 0.7f * F0, r) * Mathf.Clamp(w / 120f, 0f, 0.7f) * (1 - inLake));
|
||||
if (st.ext && st.coastS > 0)
|
||||
{
|
||||
// low jetty-like sand banks either side of the river mouth, running out to sea
|
||||
@@ -648,6 +681,7 @@ namespace TravelersQuest.World.Editor
|
||||
}
|
||||
}
|
||||
if (sumW > 0) h = Mathf.Lerp(h, sumT / sumW, maxW);
|
||||
infl = Mathf.Max(infl, maxW);
|
||||
if (jb > 0) { h = Mathf.Max(h, Mathf.Lerp(h, jTop, jb)); wet *= 1 - jb; }
|
||||
}
|
||||
return h;
|
||||
|
||||
@@ -222,7 +222,16 @@ namespace TravelersQuest.World.Editor
|
||||
return (float)h;
|
||||
}
|
||||
|
||||
/// <summary>Broad terrain (true metres) with the water and the player-scale detail of BowlValleyDetail.cs left out.</summary>
|
||||
public static float Height(double wx, double wz)
|
||||
{
|
||||
float h = HeightNoWater(wx, wz);
|
||||
if (!CutOutsideOutline && !waterOff) h = ApplyWater(h, wx, wz, out _);
|
||||
return Mathf.Clamp(h, -SeaDepth + 10, MaxHeight - 20);
|
||||
}
|
||||
|
||||
/// <summary>Dry, unclamped broad terrain: reference elevation + spot heights + islands.</summary>
|
||||
static float HeightNoWater(double wx, double wz)
|
||||
{
|
||||
float h = RawHeight(wx, wz);
|
||||
for (int i = 0; i < SpotHeights.Length; i++)
|
||||
@@ -236,9 +245,8 @@ namespace TravelersQuest.World.Editor
|
||||
{
|
||||
float ih = IslandHeight(wx, wz);
|
||||
if (ih > float.MinValue) h = SmoothMax(h, ih, 6);
|
||||
if (!waterOff) h = ApplyWater(h, wx, wz, out _);
|
||||
}
|
||||
return Mathf.Clamp(h, -SeaDepth + 10, MaxHeight - 20);
|
||||
return h;
|
||||
}
|
||||
|
||||
static float SmoothMax(float a, float b, float k)
|
||||
@@ -278,9 +286,11 @@ namespace TravelersQuest.World.Editor
|
||||
waterOff = true; SolveSpotOffsets(); // dry terrain first: lake and river levels are fitted to it
|
||||
BuildHydrology();
|
||||
SolveSpotOffsets(reset: false, iterations: 2);
|
||||
BuildRoutes(); // graded passes (need the water to avoid lakes)
|
||||
}
|
||||
else
|
||||
{
|
||||
routes = new List<Route>(); routeBuckets = null;
|
||||
rivers = new List<RiverPath>(); islands = new List<Island>(); riverBuckets = null;
|
||||
lakes = new List<Lake>(); streams = new List<Reach>(); streamBuckets = null; lakeBuckets = null;
|
||||
SolveSpotOffsets();
|
||||
@@ -788,36 +798,42 @@ namespace TravelersQuest.World.Editor
|
||||
}
|
||||
|
||||
// Legend-matched layers: lowland, plains, foothills, mountains, high mountains, alpine snow, water, rock/cliff.
|
||||
static readonly (string name, Color32 col, float smooth)[] LayerDefs =
|
||||
// The first eight are matched to the legend (their average colours keep the top-down look); the last four add
|
||||
// player-scale variety: dry meadow, scree, bare dirt / tracks, and shingle at the water's edge.
|
||||
// metres: repeat length of the texture on the ground (snapped to divide the tile size exactly; see LayerTileSize).
|
||||
static readonly (string name, Color32 col, float smooth, Surface kind, float metres)[] LayerDefs =
|
||||
{
|
||||
("Lowland", new Color32(160, 199, 86, 255), 0.05f), ("Plains", new Color32(128, 174, 66, 255), 0.05f),
|
||||
("Foothills", new Color32(84, 128, 48, 255), 0.05f), ("Mountains", new Color32(168, 152, 120, 255), 0.08f),
|
||||
("HighMountains", new Color32(176, 174, 182, 255), 0.1f), ("AlpineSnow", new Color32(244, 246, 250, 255), 0.35f),
|
||||
("Riverbed", new Color32(86, 78, 60, 255), 0.2f), ("Rock", new Color32(112, 100, 88, 255), 0.1f),
|
||||
("Lowland", new Color32(160, 199, 86, 255), 0.05f, Surface.Grass, 48f), ("Plains", new Color32(128, 174, 66, 255), 0.05f, Surface.Grass, 52f),
|
||||
("Foothills", new Color32(84, 128, 48, 255), 0.05f, Surface.Grass, 56f), ("Mountains", new Color32(168, 152, 120, 255), 0.08f, Surface.Soil, 44f),
|
||||
("HighMountains", new Color32(176, 174, 182, 255), 0.1f, Surface.Rock, 64f), ("AlpineSnow", new Color32(244, 246, 250, 255), 0.35f, Surface.Snow, 64f),
|
||||
("Riverbed", new Color32(86, 78, 60, 255), 0.2f, Surface.Mud, 44f), ("Rock", new Color32(112, 100, 88, 255), 0.1f, Surface.Rock, 60f),
|
||||
("DryGrass", new Color32(168, 172, 92, 255), 0.04f, Surface.Grass, 48f), ("Scree", new Color32(134, 130, 124, 255), 0.08f, Surface.Gravel, 40f),
|
||||
("Dirt", new Color32(122, 100, 72, 255), 0.06f, Surface.Soil, 40f), ("Shingle", new Color32(150, 142, 126, 255), 0.15f, Surface.Gravel, 40f),
|
||||
};
|
||||
|
||||
static TerrainLayer[] CreateLayers()
|
||||
{
|
||||
const int size = 1024;
|
||||
var layers = new TerrainLayer[LayerDefs.Length];
|
||||
for (int l = 0; l < LayerDefs.Length; l++)
|
||||
{
|
||||
var (name, col, smooth) = LayerDefs[l];
|
||||
string texPath = $"{OutputFolder}/Layers/{name}.png", layerPath = $"{OutputFolder}/Layers/{name}.terrainlayer";
|
||||
var t = new Texture2D(64, 64, TextureFormat.RGBA32, false);
|
||||
var c = new Color32[64 * 64];
|
||||
var rnd = new System.Random(l * 7919 + 1);
|
||||
for (int i = 0; i < c.Length; i++)
|
||||
var (name, col, smooth, kind, metres) = LayerDefs[l];
|
||||
string texPath = $"{OutputFolder}/Layers/{name}.png", nrmPath = $"{OutputFolder}/Layers/{name}_Normal.png";
|
||||
string layerPath = $"{OutputFolder}/Layers/{name}.terrainlayer";
|
||||
MakeLayerTexture(kind, col, 101 + 17 * l, size, out var albedo, out var normal, out _);
|
||||
foreach (var (p, px) in new[] { (texPath, albedo), (nrmPath, normal) })
|
||||
{
|
||||
float k = 1 + (float)(rnd.NextDouble() - 0.5) * 0.08f + 0.04f * Mathf.PerlinNoise(i % 64 * 0.15f + l, i / 64 * 0.15f);
|
||||
c[i] = new Color32((byte)Mathf.Clamp(col.r * k, 0, 255), (byte)Mathf.Clamp(col.g * k, 0, 255), (byte)Mathf.Clamp(col.b * k, 0, 255), 255);
|
||||
var t = new Texture2D(size, size, TextureFormat.RGBA32, false);
|
||||
t.SetPixels32(px); t.Apply();
|
||||
File.WriteAllBytes(p, t.EncodeToPNG()); UnityEngine.Object.DestroyImmediate(t);
|
||||
}
|
||||
t.SetPixels32(c); t.Apply();
|
||||
File.WriteAllBytes(texPath, t.EncodeToPNG()); UnityEngine.Object.DestroyImmediate(t);
|
||||
AssetDatabase.ImportAsset(texPath);
|
||||
ImportLayerTexture(texPath, false); ImportLayerTexture(nrmPath, true);
|
||||
var layer = AssetDatabase.LoadAssetAtPath<TerrainLayer>(layerPath);
|
||||
if (!layer) { layer = new TerrainLayer(); AssetDatabase.CreateAsset(layer, layerPath); }
|
||||
layer.diffuseTexture = AssetDatabase.LoadAssetAtPath<Texture2D>(texPath);
|
||||
layer.tileSize = new Vector2(400, 400);
|
||||
layer.normalMapTexture = AssetDatabase.LoadAssetAtPath<Texture2D>(nrmPath);
|
||||
layer.normalScale = 1f;
|
||||
layer.tileSize = LayerTileSize(metres); layer.tileOffset = Vector2.zero;
|
||||
layer.smoothness = smooth; layer.metallic = 0;
|
||||
EditorUtility.SetDirty(layer);
|
||||
layers[l] = layer;
|
||||
@@ -841,23 +857,32 @@ namespace TravelersQuest.World.Editor
|
||||
var layers = LoadLayers();
|
||||
float tileW = TileW, tileD = TileD;
|
||||
float rangeY = CutOutsideOutline ? MaxHeight : MaxHeight + SeaDepth, baseY = CutOutsideOutline ? 0 : -SeaDepth;
|
||||
int res = TileRes, n = res - 1;
|
||||
var material = TerrainMaterial();
|
||||
var sb = new System.Text.StringBuilder();
|
||||
for (int tx = 0; tx < TilesX; tx++)
|
||||
{
|
||||
bool detail = IsDetailTile(tx, tz);
|
||||
int res = detail ? DetailRes : TileRes, n = res - 1;
|
||||
double ox = -WorldSizeX / 2 + tx * tileW, oz = -WorldSizeZ / 2 + tz * tileD;
|
||||
var hm = new float[res * res]; // metres, true scale
|
||||
var ins = new bool[res * res];
|
||||
Parallel.For(0, res, j =>
|
||||
{
|
||||
for (int i = 0; i < res; i++)
|
||||
TileGrid grid = default;
|
||||
if (CutOutsideOutline)
|
||||
Parallel.For(0, res, j =>
|
||||
{
|
||||
double wx = ox + (double)i / n * tileW, wz = oz + (double)j / n * tileD;
|
||||
bool inside = Inside((float)wx, (float)wz) >= 0.5f;
|
||||
ins[j * res + i] = inside;
|
||||
hm[j * res + i] = inside || !CutOutsideOutline ? Height(wx, wz) : 0f;
|
||||
}
|
||||
});
|
||||
for (int i = 0; i < res; i++)
|
||||
{
|
||||
double wx = ox + (double)i / n * tileW, wz = oz + (double)j / n * tileD;
|
||||
bool inside = Inside((float)wx, (float)wz) >= 0.5f;
|
||||
ins[j * res + i] = inside;
|
||||
hm[j * res + i] = inside ? Height(wx, wz) : 0f;
|
||||
}
|
||||
});
|
||||
else
|
||||
{
|
||||
grid = TileHeights(tx, tz, res); // broad terrain + player-scale detail + water, with an apron
|
||||
for (int j = 0; j < res; j++) for (int i = 0; i < res; i++) { hm[j * res + i] = grid.At(i, j); ins[j * res + i] = true; }
|
||||
}
|
||||
if (!CutOutsideOutline)
|
||||
{
|
||||
float hMax = float.MinValue; foreach (var v in hm) hMax = Mathf.Max(hMax, v);
|
||||
@@ -875,54 +900,45 @@ namespace TravelersQuest.World.Editor
|
||||
}
|
||||
|
||||
// splat weights
|
||||
int L = LayerDefs.Length, A = AlphaRes;
|
||||
int L = LayerDefs.Length, A = detail ? DetailAlphaRes : AlphaRes;
|
||||
var alpha = new float[A, A, L];
|
||||
float cellX = tileW / n, cellZ = tileD / n;
|
||||
float cellX = tileW / n, cellZ = tileD / n, cell = Mathf.Min(cellX, cellZ);
|
||||
// slope and curvature are measured over the same ground distance on every tile (fine or coarse), and
|
||||
// read from the apron at the tile edge, so the painting carries straight across tile boundaries
|
||||
int ks = Mathf.Max(1, Mathf.RoundToInt(SlopeBase / cell)), kc = Mathf.Max(1, Mathf.RoundToInt(CurvBase / cell));
|
||||
var hp = grid.h; int Q = grid.Q, GW = res + 2 * Q;
|
||||
float Hg(int i, int j)
|
||||
{
|
||||
if (hp == null) return hm[Mathf.Clamp(j, 0, n) * res + Mathf.Clamp(i, 0, n)];
|
||||
return hp[(Mathf.Clamp(j, -Q, n + Q) + Q) * GW + Mathf.Clamp(i, -Q, n + Q) + Q];
|
||||
}
|
||||
Parallel.For(0, A, aj =>
|
||||
{
|
||||
var wts = new float[L];
|
||||
sampleCell = cell;
|
||||
for (int ai = 0; ai < A; ai++)
|
||||
{
|
||||
float u = (ai + 0.5f) / A * n, v = (aj + 0.5f) / A * n;
|
||||
int i = Mathf.Clamp(Mathf.RoundToInt(u), 1, n - 1), j = Mathf.Clamp(Mathf.RoundToInt(v), 1, n - 1);
|
||||
// Unity's terrain shader places splat texel i at i / (A - 1) across the tile, so the first and last
|
||||
// texels sit exactly on the tile edges and neighbouring tiles share those values; sampling texel
|
||||
// centres instead ((i + 0.5) / A) put each tile's edge colour half a texel inside and left a step
|
||||
// at every tile boundary wherever the painting varies
|
||||
float u = (float)ai / (A - 1) * n, v = (float)aj / (A - 1) * n;
|
||||
int i = Mathf.RoundToInt(u), j = Mathf.RoundToInt(v);
|
||||
float h = Bilinear(hm, res, res, u, v);
|
||||
float gx = VerticalExaggeration * (hm[j * res + i + 1] - hm[j * res + i - 1]) / (2 * cellX);
|
||||
float gz = VerticalExaggeration * (hm[(j + 1) * res + i] - hm[(j - 1) * res + i]) / (2 * cellZ);
|
||||
float gx = VerticalExaggeration * (Hg(i + ks, j) - Hg(i - ks, j)) / (2 * ks * cellX);
|
||||
float gz = VerticalExaggeration * (Hg(i, j + ks) - Hg(i, j - ks)) / (2 * ks * cellZ);
|
||||
float slopeDeg = Mathf.Atan(Mathf.Sqrt(gx * gx + gz * gz)) * Mathf.Rad2Deg;
|
||||
float curv = VerticalExaggeration * ((Hg(i + kc, j) + Hg(i - kc, j) + Hg(i, j + kc) + Hg(i, j - kc)) * 0.25f - Hg(i, j));
|
||||
double wx = ox + u / n * tileW, wz = oz + v / n * tileD;
|
||||
float jitter = (float)(Noise.Fbm(wx / 6000 + 3.3, wz / 6000 - 8.8, 4) * 70);
|
||||
Array.Clear(wts, 0, L);
|
||||
BandWeights(h + jitter, wts);
|
||||
// snow only holds on gentler slopes
|
||||
float snowSlope = Mathf.InverseLerp(42, 30, slopeDeg);
|
||||
wts[4] += wts[5] * (1 - snowSlope); wts[5] *= snowSlope;
|
||||
float rock = Mathf.InverseLerp(36, 52, slopeDeg);
|
||||
if (CutOutsideOutline && h <= 1f) rock = 1; // diorama walls
|
||||
for (int k = 0; k < L; k++) wts[k] *= 1 - rock;
|
||||
wts[7] += rock;
|
||||
float wet = 0, infl = 0, route = 0;
|
||||
if (!CutOutsideOutline)
|
||||
{
|
||||
// beaches (tan, from the Mountains layer) just above sea level
|
||||
float beach = Mathf.InverseLerp(9, 2, h) * Mathf.InverseLerp(28, 14, slopeDeg);
|
||||
for (int k = 0; k < L; k++) wts[k] *= 1 - beach;
|
||||
wts[3] += beach;
|
||||
ApplyWater(h, wx, wz, out wet, out infl); // riverbed / lakebed mud under the water, gravel margins
|
||||
RouteWeight(wx, wz, out _, out float rd);
|
||||
route = S01(70f, 12f, rd); // the track itself, narrower than the graded strip
|
||||
}
|
||||
float wet = 0;
|
||||
if (!CutOutsideOutline)
|
||||
{
|
||||
ApplyWater(h, wx, wz, out wet); // riverbed / lakebed mud under the water
|
||||
if (h < 0)
|
||||
{
|
||||
// seafloor under the ocean surface: sand in the shallows, dark silt deeper
|
||||
float sand = Mathf.InverseLerp(-45, -4, h);
|
||||
for (int k = 0; k < L; k++) wts[k] = 0;
|
||||
wts[3] = sand; wts[6] = 1 - sand; wet = 0;
|
||||
}
|
||||
}
|
||||
for (int k = 0; k < L; k++) wts[k] *= 1 - wet;
|
||||
wts[6] += wet;
|
||||
float sum = 0; for (int k = 0; k < L; k++) sum += wts[k];
|
||||
for (int k = 0; k < L; k++) alpha[aj, ai, k] = wts[k] / sum;
|
||||
PaintWeights(h, slopeDeg, curv, wx, wz, wet, infl, route, wts);
|
||||
for (int k = 0; k < L; k++) alpha[aj, ai, k] = wts[k];
|
||||
}
|
||||
});
|
||||
|
||||
@@ -953,6 +969,7 @@ namespace TravelersQuest.World.Editor
|
||||
terrain.groupingID = 500;
|
||||
terrain.allowAutoConnect = true;
|
||||
terrain.shadowCastingMode = UnityEngine.Rendering.ShadowCastingMode.TwoSided;
|
||||
if (material) terrain.materialTemplate = material;
|
||||
if (!anySolid) go.SetActive(false); // tile lies wholly outside the outline
|
||||
sb.Append(go.name).Append(anySolid ? " " : "(empty) ");
|
||||
|
||||
@@ -997,6 +1014,8 @@ namespace TravelersQuest.World.Editor
|
||||
{
|
||||
var root = GameObject.Find(RootName);
|
||||
var terrains = root.GetComponentsInChildren<Terrain>(true);
|
||||
StitchSeams(terrains);
|
||||
StitchSplats(terrains);
|
||||
foreach (var t in terrains) t.SetNeighbors(null, null, null, null);
|
||||
Terrain.SetConnectivityDirty();
|
||||
|
||||
@@ -1064,12 +1083,13 @@ namespace TravelersQuest.World.Editor
|
||||
{
|
||||
var parts = t.name.Substring(5).Split('-');
|
||||
int tx = int.Parse(parts[0]), tz = int.Parse(parts[1]);
|
||||
var h = t.terrainData.GetHeights(0, 0, TileRes, TileRes);
|
||||
int tr = t.terrainData.heightmapResolution, f = (tr - 1) / (TileRes - 1); // fine tiles: every f-th sample
|
||||
var h = t.terrainData.GetHeights(0, 0, tr, tr);
|
||||
for (int j = 0; j < TileRes; j += step)
|
||||
for (int i = 0; i < TileRes; i += step)
|
||||
{
|
||||
int gx = (tx * (TileRes - 1) + i) / step, gy = (tz * (TileRes - 1) + j) / step;
|
||||
raw[(H - 1 - gy) * W + gx] = (ushort)Mathf.RoundToInt(Mathf.Clamp01(h[j, i]) * 65535); // row 0 = north
|
||||
raw[(H - 1 - gy) * W + gx] = (ushort)Mathf.RoundToInt(Mathf.Clamp01(h[j * f, i * f]) * 65535); // row 0 = north
|
||||
}
|
||||
}
|
||||
Directory.CreateDirectory("Exports");
|
||||
|
||||
@@ -0,0 +1,117 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: BowlValleyTerrain
|
||||
m_Shader: {fileID: 4800000, guid: 69c1f799e772cb6438f56c23efccb782, type: 3}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords:
|
||||
- _NORMALMAP
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 1
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _Control:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Mask0:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Mask1:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Mask2:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Mask3:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Normal0:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Normal1:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Normal2:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Normal3:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Splat0:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Splat1:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Splat2:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Splat3:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _TerrainHolesTexture:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _EnableHeightBlend: 0
|
||||
- _EnableInstancedPerPixelNormal: 1
|
||||
- _HeightTransition: 0
|
||||
- _Metallic0: 0
|
||||
- _Metallic1: 0
|
||||
- _Metallic2: 0
|
||||
- _Metallic3: 0
|
||||
- _NumLayersCount: 1
|
||||
- _Smoothness0: 0.5
|
||||
- _Smoothness1: 0.5
|
||||
- _Smoothness2: 0.5
|
||||
- _Smoothness3: 0.5
|
||||
m_Colors:
|
||||
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
m_AllowLocking: 1
|
||||
--- !u!114 &8422374162180079507
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 11
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Editor::UnityEditor.Rendering.Universal.AssetVersion
|
||||
version: 10
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6d04dd1015ec22946a2d92280e311c5c
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -34,8 +34,8 @@ TextureImporter:
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
@@ -69,7 +69,7 @@ TextureImporter:
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
|
||||
+2
-2
@@ -8,9 +8,9 @@ TerrainLayer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: AlpineSnow
|
||||
m_DiffuseTexture: {fileID: 2800000, guid: 3008524cac8d097a4b097d0b1a9db692, type: 3}
|
||||
m_NormalMapTexture: {fileID: 0}
|
||||
m_NormalMapTexture: {fileID: 2800000, guid: b09c06231637f9410beb2e5a81378930, type: 3}
|
||||
m_MaskMapTexture: {fileID: 0}
|
||||
m_TileSize: {x: 400, y: 400}
|
||||
m_TileSize: {x: 63.97134, y: 64.02227}
|
||||
m_TileOffset: {x: 0, y: 0}
|
||||
m_Specular: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_Metallic: 0
|
||||
|
||||
BIN
Binary file not shown.
+117
@@ -0,0 +1,117 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b09c06231637f9410beb2e5a81378930
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 1
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,117 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 153fa5f3203910183ba780505d1b73f5
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,23 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1953259897 &8574412962073106934
|
||||
TerrainLayer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Dirt
|
||||
m_DiffuseTexture: {fileID: 2800000, guid: 153fa5f3203910183ba780505d1b73f5, type: 3}
|
||||
m_NormalMapTexture: {fileID: 2800000, guid: 62424a31686cc2cccae7ad226ce0bf8e, type: 3}
|
||||
m_MaskMapTexture: {fileID: 0}
|
||||
m_TileSize: {x: 40.012806, y: 40.008698}
|
||||
m_TileOffset: {x: 0, y: 0}
|
||||
m_Specular: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_Metallic: 0
|
||||
m_Smoothness: 0.06
|
||||
m_NormalScale: 1
|
||||
m_DiffuseRemapMin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_DiffuseRemapMax: {x: 1, y: 1, z: 1, w: 1}
|
||||
m_MaskMapRemapMin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_MaskMapRemapMax: {x: 1, y: 1, z: 1, w: 1}
|
||||
m_SmoothnessSource: 1
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 21c19cd917d4dc07b9665dde2d8d0119
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 8574412962073106934
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,117 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 62424a31686cc2cccae7ad226ce0bf8e
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 1
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,117 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1c3cc659e11b2e01182e00af275db028
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,23 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1953259897 &8574412962073106934
|
||||
TerrainLayer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: DryGrass
|
||||
m_DiffuseTexture: {fileID: 2800000, guid: 1c3cc659e11b2e01182e00af275db028, type: 3}
|
||||
m_NormalMapTexture: {fileID: 2800000, guid: 131ba167314625849865bd9ec885e159, type: 3}
|
||||
m_MaskMapTexture: {fileID: 0}
|
||||
m_TileSize: {x: 48.00307, y: 47.991653}
|
||||
m_TileOffset: {x: 0, y: 0}
|
||||
m_Specular: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_Metallic: 0
|
||||
m_Smoothness: 0.04
|
||||
m_NormalScale: 1
|
||||
m_DiffuseRemapMin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_DiffuseRemapMax: {x: 1, y: 1, z: 1, w: 1}
|
||||
m_MaskMapRemapMin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_MaskMapRemapMax: {x: 1, y: 1, z: 1, w: 1}
|
||||
m_SmoothnessSource: 1
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c305da5383c1939d7af1e60b0dbb505c
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 8574412962073106934
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
+117
@@ -0,0 +1,117 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 131ba167314625849865bd9ec885e159
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 1
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -34,8 +34,8 @@ TextureImporter:
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
@@ -69,7 +69,7 @@ TextureImporter:
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
|
||||
@@ -8,9 +8,9 @@ TerrainLayer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Foothills
|
||||
m_DiffuseTexture: {fileID: 2800000, guid: af78623b9bc8189f789e75085dd0caad, type: 3}
|
||||
m_NormalMapTexture: {fileID: 0}
|
||||
m_NormalMapTexture: {fileID: 2800000, guid: 1a8d728055290617a97dc3b1bc8061bb, type: 3}
|
||||
m_MaskMapTexture: {fileID: 0}
|
||||
m_TileSize: {x: 400, y: 400}
|
||||
m_TileSize: {x: 56.003586, y: 56.012177}
|
||||
m_TileOffset: {x: 0, y: 0}
|
||||
m_Specular: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_Metallic: 0
|
||||
|
||||
Binary file not shown.
+117
@@ -0,0 +1,117 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1a8d728055290617a97dc3b1bc8061bb
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 1
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -34,8 +34,8 @@ TextureImporter:
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
@@ -69,7 +69,7 @@ TextureImporter:
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
|
||||
+2
-2
@@ -8,9 +8,9 @@ TerrainLayer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: HighMountains
|
||||
m_DiffuseTexture: {fileID: 2800000, guid: 72d7bdb211b682b528d6aa3b45dde8a1, type: 3}
|
||||
m_NormalMapTexture: {fileID: 0}
|
||||
m_NormalMapTexture: {fileID: 2800000, guid: 5258b5870d59918e0b1043b12b8bd622, type: 3}
|
||||
m_MaskMapTexture: {fileID: 0}
|
||||
m_TileSize: {x: 400, y: 400}
|
||||
m_TileSize: {x: 63.97134, y: 64.02227}
|
||||
m_TileOffset: {x: 0, y: 0}
|
||||
m_Specular: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_Metallic: 0
|
||||
|
||||
BIN
Binary file not shown.
+117
@@ -0,0 +1,117 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5258b5870d59918e0b1043b12b8bd622
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 1
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -34,8 +34,8 @@ TextureImporter:
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
@@ -69,7 +69,7 @@ TextureImporter:
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
|
||||
@@ -8,9 +8,9 @@ TerrainLayer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Lowland
|
||||
m_DiffuseTexture: {fileID: 2800000, guid: 3f806a653a80577e8abd3b518efdc920, type: 3}
|
||||
m_NormalMapTexture: {fileID: 0}
|
||||
m_NormalMapTexture: {fileID: 2800000, guid: 299b76fb920fae4cea6acf51b6ef6fc3, type: 3}
|
||||
m_MaskMapTexture: {fileID: 0}
|
||||
m_TileSize: {x: 400, y: 400}
|
||||
m_TileSize: {x: 48.00307, y: 47.991653}
|
||||
m_TileOffset: {x: 0, y: 0}
|
||||
m_Specular: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_Metallic: 0
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,117 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 299b76fb920fae4cea6acf51b6ef6fc3
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 1
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -34,8 +34,8 @@ TextureImporter:
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
@@ -69,7 +69,7 @@ TextureImporter:
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
|
||||
@@ -8,9 +8,9 @@ TerrainLayer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Mountains
|
||||
m_DiffuseTexture: {fileID: 2800000, guid: 1b6e02efcedd27ae1a05b4e939a64071, type: 3}
|
||||
m_NormalMapTexture: {fileID: 0}
|
||||
m_NormalMapTexture: {fileID: 2800000, guid: 4d27c2ad879311b8b8b39b6bf49841d2, type: 3}
|
||||
m_MaskMapTexture: {fileID: 0}
|
||||
m_TileSize: {x: 400, y: 400}
|
||||
m_TileSize: {x: 44.014084, y: 43.998085}
|
||||
m_TileOffset: {x: 0, y: 0}
|
||||
m_Specular: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_Metallic: 0
|
||||
|
||||
Binary file not shown.
+117
@@ -0,0 +1,117 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4d27c2ad879311b8b8b39b6bf49841d2
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 1
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -34,8 +34,8 @@ TextureImporter:
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
@@ -69,7 +69,7 @@ TextureImporter:
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
|
||||
@@ -8,9 +8,9 @@ TerrainLayer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Plains
|
||||
m_DiffuseTexture: {fileID: 2800000, guid: 9a14a35e27792470ebba5222076b936c, type: 3}
|
||||
m_NormalMapTexture: {fileID: 0}
|
||||
m_NormalMapTexture: {fileID: 2800000, guid: 67be1516ab5b3f0708016304391819e1, type: 3}
|
||||
m_MaskMapTexture: {fileID: 0}
|
||||
m_TileSize: {x: 400, y: 400}
|
||||
m_TileSize: {x: 51.996674, y: 52.021484}
|
||||
m_TileOffset: {x: 0, y: 0}
|
||||
m_Specular: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_Metallic: 0
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,117 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 67be1516ab5b3f0708016304391819e1
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 1
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -34,8 +34,8 @@ TextureImporter:
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
@@ -69,7 +69,7 @@ TextureImporter:
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
|
||||
@@ -8,9 +8,9 @@ TerrainLayer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Riverbed
|
||||
m_DiffuseTexture: {fileID: 2800000, guid: fe2d750478c54c112ab086dea0735f1d, type: 3}
|
||||
m_NormalMapTexture: {fileID: 0}
|
||||
m_NormalMapTexture: {fileID: 2800000, guid: 3164f0bc778e332d8a85c073a58b92e6, type: 3}
|
||||
m_MaskMapTexture: {fileID: 0}
|
||||
m_TileSize: {x: 400, y: 400}
|
||||
m_TileSize: {x: 44.014084, y: 43.998085}
|
||||
m_TileOffset: {x: 0, y: 0}
|
||||
m_Specular: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_Metallic: 0
|
||||
|
||||
Binary file not shown.
+117
@@ -0,0 +1,117 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3164f0bc778e332d8a85c073a58b92e6
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 1
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -34,8 +34,8 @@ TextureImporter:
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
@@ -69,7 +69,7 @@ TextureImporter:
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
|
||||
@@ -8,9 +8,9 @@ TerrainLayer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Rock
|
||||
m_DiffuseTexture: {fileID: 2800000, guid: 3926a3b6031e4c393a03ce1d7316c2f8, type: 3}
|
||||
m_NormalMapTexture: {fileID: 0}
|
||||
m_NormalMapTexture: {fileID: 2800000, guid: 5305ec8bbcd0d72dc90cad0786af1605, type: 3}
|
||||
m_MaskMapTexture: {fileID: 0}
|
||||
m_TileSize: {x: 400, y: 400}
|
||||
m_TileSize: {x: 59.980804, y: 60.013046}
|
||||
m_TileOffset: {x: 0, y: 0}
|
||||
m_Specular: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_Metallic: 0
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,117 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5305ec8bbcd0d72dc90cad0786af1605
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 1
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,117 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f57a3034e20784ec1a5e5ad1e787ef45
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,23 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1953259897 &8574412962073106934
|
||||
TerrainLayer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Scree
|
||||
m_DiffuseTexture: {fileID: 2800000, guid: f57a3034e20784ec1a5e5ad1e787ef45, type: 3}
|
||||
m_NormalMapTexture: {fileID: 2800000, guid: 3a1074f64e9d9134b8a244e0bcecd86c, type: 3}
|
||||
m_MaskMapTexture: {fileID: 0}
|
||||
m_TileSize: {x: 40.012806, y: 40.008698}
|
||||
m_TileOffset: {x: 0, y: 0}
|
||||
m_Specular: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_Metallic: 0
|
||||
m_Smoothness: 0.08
|
||||
m_NormalScale: 1
|
||||
m_DiffuseRemapMin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_DiffuseRemapMax: {x: 1, y: 1, z: 1, w: 1}
|
||||
m_MaskMapRemapMin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_MaskMapRemapMax: {x: 1, y: 1, z: 1, w: 1}
|
||||
m_SmoothnessSource: 1
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 115121a593f39af1b90f93eeb4506134
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 8574412962073106934
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,117 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3a1074f64e9d9134b8a244e0bcecd86c
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 1
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,117 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 185605dc6bb07728c96e2308368b3ca8
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,23 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1953259897 &8574412962073106934
|
||||
TerrainLayer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Shingle
|
||||
m_DiffuseTexture: {fileID: 2800000, guid: 185605dc6bb07728c96e2308368b3ca8, type: 3}
|
||||
m_NormalMapTexture: {fileID: 2800000, guid: b10f2d6d5a25c34599f06db0967f0c35, type: 3}
|
||||
m_MaskMapTexture: {fileID: 0}
|
||||
m_TileSize: {x: 40.012806, y: 40.008698}
|
||||
m_TileOffset: {x: 0, y: 0}
|
||||
m_Specular: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_Metallic: 0
|
||||
m_Smoothness: 0.15
|
||||
m_NormalScale: 1
|
||||
m_DiffuseRemapMin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_DiffuseRemapMax: {x: 1, y: 1, z: 1, w: 1}
|
||||
m_MaskMapRemapMin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_MaskMapRemapMax: {x: 1, y: 1, z: 1, w: 1}
|
||||
m_SmoothnessSource: 1
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7b64f4debc5d497b0b9bcde0bd971344
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 8574412962073106934
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,117 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b10f2d6d5a25c34599f06db0967f0c35
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 8
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 1
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user