You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gate LTC LUTs behind a feature and merge them to a texture array (#24065)
# Objective
Alternative to #24004.
#23288 adds ltc luts for rect
light support which implicitly requires `bevy_image/ktx2` and
`bevy_image/zstd` otherwise loading ltc luts will panic.
We either accept to always enable area light supoort (#24004), or add a
feature to opt out it (this PR).
## Solution
Gate ltc luts behind a feature and merge them to a texture array.
## Testing
`rect_light` example works.
---------
Co-authored-by: Kevin Chen <chen.kevin.f@gmail.com>
Copy file name to clipboardExpand all lines: .github/workflows/example-run.yml
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ jobs:
52
52
example_name=`basename $example .ron`
53
53
echo -n $example_name > last_example_run
54
54
echo "running $example_name - "`date`
55
-
time TRACE_CHROME=trace-$example_name.json CI_TESTING_CONFIG=$example cargo run --example $example_name --features "bevy_ci_testing,trace,trace_chrome,bevy_ui_debug"
55
+
time TRACE_CHROME=trace-$example_name.json CI_TESTING_CONFIG=$example cargo run --example $example_name --features "bevy_ci_testing,trace,trace_chrome,bevy_ui_debug,area_light_luts"
56
56
sleep 10
57
57
if [ `find ./ -maxdepth 1 -name 'screenshot-*.png' -print -quit` ]; then
58
58
mkdir screenshots-$example_name
@@ -132,7 +132,7 @@ jobs:
132
132
example_name=`basename $example .ron`
133
133
echo -n $example_name > last_example_run
134
134
echo "running $example_name - "`date`
135
-
time TRACE_CHROME=trace-$example_name.json CI_TESTING_CONFIG=$example xvfb-run cargo run --example $example_name --features "bevy_ci_testing,trace,trace_chrome,bevy_ui_debug"
135
+
time TRACE_CHROME=trace-$example_name.json CI_TESTING_CONFIG=$example xvfb-run cargo run --example $example_name --features "bevy_ci_testing,trace,trace_chrome,bevy_ui_debug,area_light_luts"
136
136
sleep 10
137
137
if [ `find ./ -maxdepth 1 -name 'screenshot-*.png' -print -quit` ]; then
138
138
mkdir screenshots-$example_name
@@ -202,7 +202,7 @@ jobs:
202
202
example_name=`basename $example .ron`
203
203
echo -n $example_name > last_example_run
204
204
echo "running $example_name - "`date`
205
-
time WGPU_BACKEND=dx12 TRACE_CHROME=trace-$example_name.json CI_TESTING_CONFIG=$example cargo run --example $example_name --features "statically-linked-dxc,bevy_ci_testing,trace,trace_chrome,bevy_ui_debug"
205
+
time WGPU_BACKEND=dx12 TRACE_CHROME=trace-$example_name.json CI_TESTING_CONFIG=$example cargo run --example $example_name --features "statically-linked-dxc,bevy_ci_testing,trace,trace_chrome,bevy_ui_debug,area_light_luts"
206
206
sleep 10
207
207
if [ `find ./ -maxdepth 1 -name 'screenshot-*.png' -print -quit` ]; then
0 commit comments