| 1234567891011 |
- use bevy::prelude::*;
- struct FragmentInput {
- [[location(0)]] position: Vec2,
- [[location(1)]] color: Vec3,
- }
- #[stage(fragment)]
- fn main([[location(0)]] input: FragmentInput) -> [[location(0)]] Vec4 {
- return Vec4::new(input.color.x, input.color.y, input.color.z, 1.0);
- }
|