mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
shader/shader_prepass passes at 4 frames, one per prepass view (transparent, depth, normals, motion vectors), stepped by scripted Space presses. The camera carries Bevy's DepthPrepass, NormalPrepass and MotionVectorPrepass and Msaa::Off as <BevyComponent>s, and show_prepass.wesl reads them through bevy_pbr::prepass::utils as written. The opaque Material cube writes into the prepass and turns with Time::elapsed_secs. Live play drew its 3D under the page blended by the 3D's alpha, which a window ignores, so custom_material's COLOR_MULTIPLIER alpha of 0.5 faded the opaque cube toward the page's white. The 3D under a whole page is now copied opaque (place_under, fs_opaque), as raea render and Bevy's window present it. Outside the text block at most 574 pixels differ (edges). Mutants fail: the normals view off, NormalPrepass removed, the cube's turn frozen, the opaque cube blended. A Mask cutoff of 0.2 against 1.0 passes the bar but moves the pixel probe (2350 to 2474 px): the icon's alpha is all but 0 or 1. The ports with input scripts rerun pass.