mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-23 21:17:45 +00:00
Add another unknown new-from-Dawntrail texture usage magic
Saw in bg/ffxiv/fst_f1/fld/f1f3/material/f1f3_w1_mizu4a.mtrl, which is some water material.
This commit is contained in:
parent
c41c160338
commit
926e7e2c78
1 changed files with 4 additions and 1 deletions
|
@ -190,6 +190,9 @@ pub enum TextureUsage {
|
|||
|
||||
#[brw(magic = 0x565f8fd8u32)]
|
||||
UnknownDawntrail1,
|
||||
|
||||
#[brw(magic = 0xe5338c17u32)]
|
||||
UnknownDawntrail2,
|
||||
}
|
||||
|
||||
#[binrw]
|
||||
|
@ -264,7 +267,7 @@ pub struct Material {
|
|||
impl Material {
|
||||
pub fn from_existing(buffer: ByteSpan) -> Option<Material> {
|
||||
let mut cursor = Cursor::new(buffer);
|
||||
let mat_data = MaterialData::read(&mut cursor).ok()?;
|
||||
let mat_data = MaterialData::read(&mut cursor).unwrap();
|
||||
|
||||
let mut texture_paths = vec![];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue