From aca4a822160791bcd0cb088c3b7b5243e1be7df6 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Thu, 14 Oct 2021 15:54:05 -0700 Subject: [PATCH] Fixed shader script --- Src/Shaders/CompileShaders.cmd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Src/Shaders/CompileShaders.cmd b/Src/Shaders/CompileShaders.cmd index 0be45fee..1a12b39d 100644 --- a/Src/Shaders/CompileShaders.cmd +++ b/Src/Shaders/CompileShaders.cmd @@ -67,7 +67,10 @@ if exist %PCFXC% goto continue set PCFXC=fxc.exe :continue -@if %CompileShadersOutput%.==. set CompileShadersOutput=Compiled +if not defined CompileShadersOutput set CompileShadersOutput=Compiled +set StrTrim=%CompileShadersOutput%## +set StrTrim=%StrTrim: ##=% +set CompileShadersOutput=%StrTrim:##=% @if not exist %CompileShadersOutput% mkdir %CompileShadersOutput% call :CompileShader%1 AlphaTestEffect vs VSAlphaTest call :CompileShader%1 AlphaTestEffect vs VSAlphaTestNoFog