Moved Mars language to a separate repository. Partially refactored for the simple render pipeline. Incomplete refactor, does not build.
This commit is contained in:
parent
35cf269781
commit
1dcbcb3073
6 changed files with 20 additions and 172 deletions
|
|
@ -5,7 +5,6 @@ use glam::camera::lh::proj::directx::perspective;
|
|||
use wgpu::util::DeviceExt;
|
||||
use glam::prelude::*;
|
||||
|
||||
|
||||
struct Controller {
|
||||
buttons: HashMap<MouseButton,bool>,
|
||||
keys: HashMap<KeyCode,bool>,
|
||||
|
|
@ -150,9 +149,20 @@ struct SimpleMaterial {
|
|||
specular: Option<TexturePlan>,
|
||||
}
|
||||
|
||||
struct SimpleModel {
|
||||
affine: Affine3A,
|
||||
material: mars::gc::Gc<SimpleMaterial>,
|
||||
|
||||
}
|
||||
|
||||
struct SimpleRenderPlan {
|
||||
pipeline: wgpu::RenderPipeline,
|
||||
clients: Kt<SimpleMesh,Kt<SimpleMaterial,Affine3A>>
|
||||
// todo: clients: Kt<SimpleMesh,Kt<SimpleMaterial,Vec<Affine3A>>>
|
||||
clients: Vec<SimpleModel>
|
||||
}
|
||||
|
||||
struct FluidRigidBody {
|
||||
|
||||
}
|
||||
|
||||
pub struct State {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue