Macro nannou::glam::const_vec4
source · macro_rules! const_vec4 { ($fx4:expr) => { ... }; }
Expand description
Creates a Vec4
that can be used to initialize a constant value.
use glam::{const_vec4, Vec4};
const ONE: Vec4 = const_vec4!([1.0; 4]);
const X: Vec4 = const_vec4!([1.0, 0.0, 0.0, 0.0]);