forked from StrafesNET/strafe-client
graphics
This commit is contained in:
parent
1d4a79b15e
commit
c5f9a30c1b
@ -219,7 +219,7 @@ impl GraphicsState{
|
|||||||
//wow
|
//wow
|
||||||
let instance=GraphicsModelOwned{
|
let instance=GraphicsModelOwned{
|
||||||
transform:model.transform.into(),
|
transform:model.transform.into(),
|
||||||
normal_transform:Into::<glam::Mat3>::into(model.transform.matrix3).inverse().transpose(),
|
normal_transform:glam::Mat3::from_cols_array_2d(&model.transform.matrix3.to_array().map(|row|row.map(Into::into))).inverse().transpose(),
|
||||||
color:GraphicsModelColor4::new(model.color),
|
color:GraphicsModelColor4::new(model.color),
|
||||||
};
|
};
|
||||||
//get or create owned mesh map
|
//get or create owned mesh map
|
||||||
|
Loading…
Reference in New Issue
Block a user