mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
adds a built in detail map generator
splitTerrainMaps("data/some/file"); or makeTerrainMapsFrom("module:anAsset"); to take a detailed albedo map and split it into a _bas(is) file thats an averaghe of the inut and a _det(ail) file to raise and lower different channels from that average.
special note: while used primarily for terrain authoring, these files could also be plugged into a normal material
This commit is contained in:
parent
e77c4b3a18
commit
516df48354
3 changed files with 116 additions and 0 deletions
|
|
@ -782,4 +782,15 @@ function getNumCanCallOnObjectList(%functionName, %objectsList)
|
|||
}
|
||||
|
||||
return %numberWithFunction;
|
||||
}
|
||||
|
||||
function getImageFileName(%id)
|
||||
{
|
||||
%assetDef = AssetDatabase.acquireAsset(%id);
|
||||
return %assetDef.getImagePath();
|
||||
}
|
||||
|
||||
function makeTerrainMapsFrom(%id)
|
||||
{
|
||||
splitTerrainMaps(getImageFileName(%id));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue