From 49575580aa3940e223cc6ea98fd286da55a4b15c Mon Sep 17 00:00:00 2001 From: Bam4d Date: Sun, 24 Dec 2023 20:47:34 +0000 Subject: [PATCH] fixing shader compilation for windows --- compile_shaders.bat | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/compile_shaders.bat b/compile_shaders.bat index f663ac65..cb6f258c 100644 --- a/compile_shaders.bat +++ b/compile_shaders.bat @@ -7,9 +7,9 @@ CALL :compile_shaders_in_dir .\tests\resources\observer\block\shaders\global_lig CALL :compile_shaders_in_dir .\tests\resources\observer\isometric\shaders\lighting CALL :compile_shaders_in_dir .\tests\resources\observer\sprite\shaders\health_bars -CALL :compile_shaders_in_dir .\python\examples\Custom Shaders\Global Lighting\shaders -CALL :compile_shaders_in_dir .\python\examples\Custom Shaders\Health Bars\shaders -CALL :compile_shaders_in_dir .\python\examples\Custom Shaders\Object Lighting\shaders +CALL :compile_shaders_in_dir ".\python\examples\Custom Shaders\Global Lighting\shader" +CALL :compile_shaders_in_dir ".\python\examples\Custom Shaders\Health Bars\shaders" +CALL :compile_shaders_in_dir ".\python\examples\Custom Shaders\Object Lighting\shaders" @@ -17,5 +17,5 @@ EXIT /B 0 :compile_shaders_in_dir echo "Compiling shaders in %~1" -%GLSLC_BIN% %~1\triangle-textured.frag -o %~1\triangle-textured.frag.spv -%GLSLC_BIN% %~1\triangle-textured.vert -o %~1\triangle-textured.vert.spv +%GLSLC_BIN% "%~1\triangle-textured.frag" -o "%~1\triangle-textured.frag.spv" +%GLSLC_BIN% "%~1\triangle-textured.vert" -o "%~1\triangle-textured.vert.spv"