Moved Mars language to a separate repository. Partially refactored for the simple render pipeline. Incomplete refactor, does not build.

This commit is contained in:
paladin 2026-08-19 23:43:47 +01:00
parent 35cf269781
commit 1dcbcb3073
6 changed files with 20 additions and 172 deletions

View file

@ -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 {