Fix dynamic model lighting and document GPU comparison (#123)
Co-Authored-By: Kimi Code <noreply@moonshot.ai>
This commit is contained in:
@@ -3,6 +3,7 @@ struct Preview;
|
||||
impl Mod for Preview {
|
||||
fn init() -> Result<(Self, Registration), String> { Ok((Self, Registration::new().on_tick())) }
|
||||
fn tick(&mut self, _: u64) {
|
||||
render::set_lighting(render::Lighting { hd: true, exposure: 1., bloom: 0.55 });
|
||||
render::set_models(&[render::ModelInstance { id: 1, model: "airdef:lancet".into(), x: 0.5, y: 110.5, z: 0.5, rotation: (0.,0.,0.,1.), scale: 1., glow: false }]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user