-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathcompile_shaders.sh
More file actions
executable file
·21 lines (17 loc) · 911 Bytes
/
compile_shaders.sh
File metadata and controls
executable file
·21 lines (17 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
set -e
cd "$(dirname "$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"
}
compile_shaders_in_dir ./resources/shaders/default/block
compile_shaders_in_dir ./resources/shaders/default/sprite
compile_shaders_in_dir ./resources/shaders/default/isometric
compile_shaders_in_dir ./tests/resources/observer/block/shaders/global_lighting
compile_shaders_in_dir ./tests/resources/observer/isometric/shaders/lighting
compile_shaders_in_dir ./tests/resources/observer/sprite/shaders/health_bars
compile_shaders_in_dir "./python/examples/Custom Shaders/Global Lighting/shaders"
compile_shaders_in_dir "./python/examples/Custom Shaders/Health Bars/shaders"
compile_shaders_in_dir "./python/examples/Custom Shaders/Object Lighting/shaders"