venuss 0.0.2

Venus celestial simulation crate for the MilkyWay SolarSystem workspace
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[derive(Debug, Clone)]
pub enum UniformValue {
    Float(f64),
    Vec3([f64; 3]),
}

pub struct ShaderData {
    pub name: &'static str,
    pub uniforms: Vec<(&'static str, UniformValue)>,
}

pub fn terrain() -> ShaderData {
    ShaderData {
        name: "venus_terrain",
        uniforms: vec![("u_planet_radius", UniformValue::Float(crate::VENUS_RADIUS))],
    }
}