Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

vendor: bevy_pbr in the manifest, and Solari's thin-surface change in restir.wesl marked

shinyobjectz97e3fc389215
diff --git a/vendor/bevy_solari/src/realtime/restir.wesl b/vendor/bevy_solari/src/realtime/restir.wesl
index 2c36dd10..9d70028e 100644
--- a/vendor/bevy_solari/src/realtime/restir.wesl
+++ b/vendor/bevy_solari/src/realtime/restir.wesl
@@ -247,6 +247,8 @@ fn merge_reservoirs(
// Visibility for the cross-domain targets
if other_sample_at_canonical.target_function > 0.0 && other_sample_at_canonical_jacobian > 0.0 {
+ // raea: a visibility ray leaves from the side of the surface its sample is on (ray_origin_toward_sample), so a thin
+ // raea: surface lit through from behind isn't shadowed by itself; ResolvedMaterial's last field is its transmission
let origin = ray_origin_toward_sample(canonical_world_position, canonical_world_normal, other_sample_at_canonical.sample_world_position);
let visibility = trace_visibility(origin, other_sample_at_canonical.sample_world_position);
other_sample_at_canonical.target_function *= visibility;
diff --git a/vendor/vendor.toml b/vendor/vendor.toml
index fd51b8cb..dbec373c 100644
--- a/vendor/vendor.toml
+++ b/vendor/vendor.toml
@@ -48,9 +48,16 @@ exit = "a Bevy release on Taffy 0.15"
path = "vendor/bevy_solari"
upstream = "crates.io:0.20.0"
kind = "patch"
-reason = "materials traced by their alpha (mask, blend, a premultiplied coat), uv_transform, and a panorama sun sampled as a directional light"
+reason = "materials traced by their alpha (mask, blend, a premultiplied coat), uv_transform, a panorama sun sampled as a directional light, and thin surfaces: a back face shaded as its front, light passed through by diffuse transmission, visibility rays leaving from the sample's side (restir.wesl)"
exit = "a Bevy release whose Solari traces alpha and importance-samples the environment map"
+[bevy_pbr]
+path = "vendor/bevy_pbr"
+upstream = "crates.io:0.20.0"
+kind = "patch"
+reason = "what raea's light needs from Bevy's PBR passes: diffuse transmission kept in the G-buffer's flags for Solari, emission stored pre-exposed so a bright lamp keeps its light, a jittered prepass moving the dither with its main pass, the sun's far shadow map traced past the last cascade (RaeaFarSun, LT21) and raea GI's screen light bound to each view (RaeaGiScreen, LT3)"
+exit = "Bevy view bindings a plugin can extend (a far shadow map, an indirect light texture) and a G-buffer with room for transmission; then back to the crates.io bevy_pbr"
+
# checked 2026-10-26: crates.io bevy_ui_widgets 0.20.0 (latest) is still on parley ^0.11; a Bevy git revision with 0.12 is Bevy main, not 0.20
[bevy_ui_widgets]
path = "vendor/bevy_ui_widgets"