diff --git a/compile.sh b/compile.sh index 46e9a64..7e5d1de 100755 --- a/compile.sh +++ b/compile.sh @@ -8,8 +8,10 @@ mkdir -p "${SHADER_DIR}" for file in $(ls ${SOURCE_DIR}); do ext="${file##*.}" if [[ $ext == "vert" ]] || [[ $ext == "frag" ]]; then - echo "compiling ${file}" - glslc ${SOURCE_DIR}/${file} -o ${SHADER_DIR}/$(basename ${file}).spv + src=${SOURCE_DIR}/${file} + dst=${SHADER_DIR}/$(basename ${file}).spv + echo "compiling $src to $dst" + glslc ${src} -o ${dst} fi done