11 lines
344 B
PowerShell
11 lines
344 B
PowerShell
|
|
$texturecPath = "..\tools\texturec.exe"
|
|
$textureAssetDir = "..\assets\textures"
|
|
$outputBaseDir = ".\textures"
|
|
|
|
Get-ChildItem -Path $textureAssetDir -File | ForEach-Object {
|
|
$outName = Join-Path -Path $outputBaseDir -ChildPath ($_.BaseName + ".ktx")
|
|
Write-Host $_.FullName $outName
|
|
& "$texturecPath" -f $_.FullName -o $outName -t RGBA8
|
|
}
|