C# Class TerrainPainter.tp_Utilities

Show file Open project: Stumpstump/RoverGame

Public Methods

Method Description
AddSplatTexture ( TerrainData terrainData, Texture2D main, Texture2D norm, Vector2 size, Vector2 offset, float metallic, float smoothness, Color specularColor ) : void

Add splatprototype

EditSplatTexture ( TerrainData terrainData, int index, Texture2D main, Texture2D norm, Vector2 size, Vector2 offset, float metallic, float smoothness, Color specularColor ) : void

Edit splatprototype

RemoveSplatTexture ( TerrainData td, int index ) : void

Remove splatprototype

WorldToDetail ( float pos, TerrainData td ) : int
WorldToDetail ( float pos, float size, TerrainData td ) : int
WorldToDetailf ( float pos, float terrainSize, TerrainData td ) : float
WorldToSplat ( float pos, TerrainData td ) : int

World point to Splatmap point

WorldToSplat ( float pos, float terrainSize, TerrainData td ) : int

World point to Splatmap point

WorldToSplatf ( float pos, TerrainData td ) : float

World point to Splatmap point

WorldToSplatf ( float pos, float terrainSize, TerrainData td ) : float

World point to Splatmap point

Method Details

AddSplatTexture() public static method

Add splatprototype
public static AddSplatTexture ( TerrainData terrainData, Texture2D main, Texture2D norm, Vector2 size, Vector2 offset, float metallic, float smoothness, Color specularColor ) : void
terrainData UnityEngine.TerrainData
main UnityEngine.Texture2D
norm UnityEngine.Texture2D
size UnityEngine.Vector2
offset UnityEngine.Vector2
metallic float
smoothness float
specularColor UnityEngine.Color
return void

EditSplatTexture() public static method

Edit splatprototype
public static EditSplatTexture ( TerrainData terrainData, int index, Texture2D main, Texture2D norm, Vector2 size, Vector2 offset, float metallic, float smoothness, Color specularColor ) : void
terrainData UnityEngine.TerrainData
index int
main UnityEngine.Texture2D
norm UnityEngine.Texture2D
size UnityEngine.Vector2
offset UnityEngine.Vector2
metallic float
smoothness float
specularColor UnityEngine.Color
return void

RemoveSplatTexture() public static method

Remove splatprototype
public static RemoveSplatTexture ( TerrainData td, int index ) : void
td UnityEngine.TerrainData
index int
return void

WorldToDetail() public static method

public static WorldToDetail ( float pos, TerrainData td ) : int
pos float
td UnityEngine.TerrainData
return int

WorldToDetail() public static method

public static WorldToDetail ( float pos, float size, TerrainData td ) : int
pos float
size float
td UnityEngine.TerrainData
return int

WorldToDetailf() public static method

public static WorldToDetailf ( float pos, float terrainSize, TerrainData td ) : float
pos float
terrainSize float
td UnityEngine.TerrainData
return float

WorldToSplat() public static method

World point to Splatmap point
public static WorldToSplat ( float pos, TerrainData td ) : int
pos float position
td UnityEngine.TerrainData terrain data
return int

WorldToSplat() public static method

World point to Splatmap point
public static WorldToSplat ( float pos, float terrainSize, TerrainData td ) : int
pos float position
terrainSize float terrain size
td UnityEngine.TerrainData terrain data
return int

WorldToSplatf() public static method

World point to Splatmap point
public static WorldToSplatf ( float pos, TerrainData td ) : float
pos float position
td UnityEngine.TerrainData terrain data
return float

WorldToSplatf() public static method

World point to Splatmap point
public static WorldToSplatf ( float pos, float terrainSize, TerrainData td ) : float
pos float position
terrainSize float terrain size
td UnityEngine.TerrainData terrain data
return float