public void UpdateVersion() { if (versionNumber == 0) { wrapMode = clamp ? ImageWrapMode.Clamp : ImageWrapMode.Repeat; size.y = 1024; if (inputKind == InputKind.Terrain) { if (inputTerrain == InputTerrain.Collision) { inputTerrain = InputTerrain.Convexity; } else if (inputTerrain == InputTerrain.Splatmap) { inputTerrain = InputTerrain.Collision; } else if (inputTerrain == InputTerrain.Convexity) { inputTerrain = InputTerrain.Splatmap; } } if (inputKind == InputKind.File && inputFile == InputFile.RawImage) { t.localScale = new Vector3(t.localScale.x, t.localScale.y, -t.localScale.z); } if (inputKind == InputKind.Noise) { if (inputNoise == InputNoise.Billow) { inputNoise = InputNoise.Ridged; } else if (inputNoise == InputNoise.Ridged) { inputNoise = InputNoise.Billow; } else if (inputNoise == InputNoise.IQ) { inputNoise = InputNoise.Random; } } SetVersionNumber(); } }
public void SetDefaultSettings() { size = TC_Settings.instance.global.defaultTerrainSize; if (transform.parent.GetSiblingIndex() == 0) { inputKind = InputKind.Shape; inputShape = InputShape.Circle; wrapMode = ImageWrapMode.Clamp; } else if (outputId == TC.heightOutput) { inputKind = InputKind.File; inputFile = InputFile.RawImage; wrapMode = ImageWrapMode.Clamp; } }