Files
PuzGame/src/assetcompile.ps1
Till Wübbers 02c40aeea6 more fixes
2025-04-29 08:01:26 +02:00

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
}