mirror of
https://codeberg.org/icewind/vbsp.git
synced 2026-06-03 10:44:07 +02:00
field name
This commit is contained in:
parent
8e2bf62a2e
commit
a6b367a235
2 changed files with 5 additions and 5 deletions
|
|
@ -173,7 +173,7 @@ impl<const LEN: usize> BinRead for FixedString<LEN> {
|
||||||
#[derive(Debug, Clone, BinRead)]
|
#[derive(Debug, Clone, BinRead)]
|
||||||
pub struct TextureInfo {
|
pub struct TextureInfo {
|
||||||
pub texture_transforms_u: [f32; 4],
|
pub texture_transforms_u: [f32; 4],
|
||||||
pub texture_transform_v: [f32; 4],
|
pub texture_transforms_v: [f32; 4],
|
||||||
pub light_map_scale: [f32; 4],
|
pub light_map_scale: [f32; 4],
|
||||||
pub light_map_transform: [f32; 4],
|
pub light_map_transform: [f32; 4],
|
||||||
pub flags: TextureFlags,
|
pub flags: TextureFlags,
|
||||||
|
|
|
||||||
|
|
@ -140,10 +140,10 @@ impl<'a> Handle<'a, TextureInfo> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn v(&self, pos: Vector) -> f32 {
|
pub fn v(&self, pos: Vector) -> f32 {
|
||||||
(self.texture_transform_v[0] * pos.x
|
(self.texture_transforms_v[0] * pos.x
|
||||||
+ self.texture_transform_v[1] * pos.y
|
+ self.texture_transforms_v[1] * pos.y
|
||||||
+ self.texture_transform_v[2] * pos.z
|
+ self.texture_transforms_v[2] * pos.z
|
||||||
+ self.texture_transform_v[3])
|
+ self.texture_transforms_v[3])
|
||||||
/ self.texture_data().height as f32
|
/ self.texture_data().height as f32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue