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.

279 B
Raw Blame
// shadow_only.rs: a mesh that casts shadows without being drawn. The shadow passes draw it depth only (it's opaque);
// here, in the camera's colour pass, every pixel is thrown away.

@fragment
fn fragment() -> @location(0) vec4<f32> {
    discard;
    return vec4<f32>(0.0);
}