Графические конвейеры для вокселей и нод

This commit is contained in:
2025-02-13 22:22:10 +06:00
parent a27f055af8
commit 8c13938b06
24 changed files with 1239 additions and 65 deletions

18
Work/assets/shaders/compile.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
function compile_shaders() {
local source_dir="$1"
for item in "$source_dir"/*; do
filename=$(basename "$item")
if [ -d "$item" ]; then
compile_shaders "$source_dir"/"$filename"
elif [ -f "$item" ] && [ $item -nt $item.bin ] && ([[ $filename = *'.frag' ]] || [[ $filename = *'.vert' ]] || [[ $filename = *'.geom' ]]); then
echo $filename
glslc $item -o $item.bin --target-env=vulkan1.2
fi
done
}
compile_shaders .