Skip to content

Commit

Permalink
fixing shader compilation for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Bam4d committed Dec 24, 2023
1 parent ab2fb64 commit 4957558
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions compile_shaders.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ 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"



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"

0 comments on commit 4957558

Please sign in to comment.