bevy/tools/example_showcase.sh
Carter Anderson 04590de678 separate albedo color and make it required
I worked really hard to make ColorSource work, but sadly we need color to be instanceable and making it optional would add too much complexity. Maybe at some point in the future we can add it back. On the plus side, albedo color now modulates the albedo texture
2020-03-17 22:02:01 -07:00

20 lines
No EOL
380 B
Bash

#!/bin/bash
duration='3'
run_example() {
timeout "$duration" cargo run --release --example $1
}
for entry in examples/*
do
IFS='/'
read -ra ADDR <<< $entry
IFS=' '
example_file="${ADDR[1]}"
if [ ${example_file: -2} == "rs" ]
then
example="${example_file::-3}"
echo "Running example: $example"
run_example $example
fi
done