Skip to content

Commit

Permalink
Use world lighting for zoomer model
Browse files Browse the repository at this point in the history
  • Loading branch information
toasterparty committed Jul 23, 2024
1 parent f940ff3 commit c7e596f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Binary file added extra_assets/zoomer.CMDL
Binary file not shown.
5 changes: 2 additions & 3 deletions src/custom_assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1669,9 +1669,8 @@ fn create_zoomer_cmdl_and_ancs<'r>(
new_txtr1: ResId<res_id::TXTR>,
) -> [structs::Resource<'r>; 2] {
let cmdl = {
let cmdl = ResourceData::new(&resources[&resource_info!("Zoomer.CMDL").into()]);
let cmdl_bytes = cmdl.decompress().into_owned();
let mut cmdl: structs::Cmdl = Reader::new(&cmdl_bytes[..]).read::<structs::Cmdl>(());
let cmdl = include_bytes!("../extra_assets/zoomer.CMDL");
let mut cmdl = Reader::new(&cmdl[..]).read::<structs::Cmdl>(());

cmdl.material_sets.as_mut_vec()[0].texture_ids.as_mut_vec()[0] = new_txtr1;

Expand Down

0 comments on commit c7e596f

Please sign in to comment.