mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
A Material's declarations under @if(BINDLESS) are left as written: raea's Materials aren't bindless, so that set compiles out and the @else set binds, as Bevy's does on a GPU without bindless (ui_bind.rs bindless_spans). A Cylinder alone is drawn as Bevy's Cylinder mesh (32 sides, one segment), with its normals and texture coordinates, as a lone sphere, cuboid and plane already are: a shader reading its uv now compiles (core/shape cylinder_of). Mutants: the cylinder's colour, its logo and the cube's blue are each caught (the blue by a pixel probe, 236 against 214); the radius by the pixel count. In 2D a logo swap is caught; Mask against Opaque draws the same picture in Bevy too (a custom Material2d doesn't discard, and the Mask pipeline doesn't blend).