Luce packages
LuceLuce BaseLuciaOS

dymokomi/luce-3d

Source of release 0.9.2

0.9.2 / tools / shaders.sh

#!/bin/sh
# Embeds luce-3d's shaders (shaders/) with luce-gpu's tools/embed_shaders.py: the fog
# fragment into src/renderers/fog_shaders.lucb, the overlay line fragment into
# src/renderers/line_shaders.lucb, and the Gaussian splat fragment, kernels
# and radix sort into src/renderers/splat_shaders.lucb. Needs glslangValidator and
# spirv-cross; builds use the checked-in modules, so run this only when a shader changes.
set -e
cd "$(dirname "$0")/.."
python3 ../luce-gpu/tools/embed_shaders.py src/renderers/fog_shaders.lucb --public --fast-math fog shaders/fog.frag
python3 ../luce-gpu/tools/embed_shaders.py src/renderers/line_shaders.lucb --public shaders/line.frag
python3 ../luce-gpu/tools/embed_shaders.py src/renderers/splat_shaders.lucb --public -I shaders --fast-math splat --fast-math splat_project \
    shaders/splat.frag shaders/splat_project.comp shaders/splat_offsets.comp shaders/splat_compact.comp \
    shaders/radix_count.comp shaders/radix_scan.comp shaders/radix_scatter.comp