Fix dynamic model lighting and document GPU comparison (#123)

Co-Authored-By: Kimi Code <noreply@moonshot.ai>
This commit is contained in:
2026-11-04 17:53:10 +03:00
parent 675967ce42
commit 503e6e29af
9 changed files with 24 additions and 4 deletions
+1
View File
@@ -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 }]);
}
}