Skip to content

Commit 1ec7822

Browse files
committed
feat: Make material fields public
1 parent 78c70fb commit 1ec7822

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/material/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ pub enum ShaderType {
3030

3131
#[derive(Debug, Default)]
3232
pub struct Material {
33-
shader: ShaderType,
33+
pub shader: ShaderType,
3434
// shader_flags: ShaderFlags,
35-
textures: [Option<Texture>; 8],
35+
pub textures: [Option<Texture>; 8],
3636
// blend_flags: BlendFlags,
3737
// colors: Color,
3838
pub name: String,

src/material/texture/mod.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ type Matrix4 = mint::RowMatrix4<f32>;
1010

1111
#[derive(Debug, Clone, PartialEq)]
1212
pub struct Texture {
13-
sampler_flags: SamplerFlags,
14-
id: u32,
15-
flags: TextureFlags,
13+
pub sampler_flags: SamplerFlags,
14+
pub id: u32,
15+
pub flags: TextureFlags,
1616
ex_shader: [u8; 8], //unknown. Always null
17-
weight: f32, //always 1.0
18-
coordinate_matrix: Matrix4,
17+
pub weight: f32, //always 1.0
18+
pub coordinate_matrix: Matrix4,
1919
}
2020

2121
#[cfg(feature = "pyo3")]
@@ -41,9 +41,9 @@ pub struct SamplerFlags {
4141

4242
#[derive(Debug, Clone, PartialEq)]
4343
pub struct TextureFlags {
44-
map: TextureMap,
45-
uv_translation: UvTranslationType,
46-
uv_index: Option<UvIndex>,
44+
pub map: TextureMap,
45+
pub uv_index: Option<UvIndex>,
46+
pub uv_translation: UvTranslationType,
4747
}
4848

4949
#[derive(Debug, Clone, PartialEq)]

0 commit comments

Comments
 (0)