ft: refactor materials/texture decoupling

made it so all materials can use a texture for colour source. this
should be extendable if we want to do e.g. coded patterns in future
This commit is contained in:
djaidjai committed 2026-09-13 14:53:28 +02:00
1 parent 968c232388
commit eddde10023
12 files changed
+89 -69

No files matched your search

-2
View File
@@ -27,10 +27,8 @@ fn main() {
if args.len() > 1 {
json_file = &args[1];
}
println!("we done serializingiaonosnl");
let json_str = fs::read_to_string(json_file).expect("Reading specified scene file failed!");
let mut scene: Scene = serde_json::from_str(&json_str).unwrap();
let mut scene: Scene = Scene::random();
render(&mut scene);
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.