diff options
| author | HampusM <hampus@hampusmat.com> | 2026-08-19 22:34:34 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-08-19 22:34:34 +0200 |
| commit | bcc91b3db8cd50795c21860cd7797581199d5589 (patch) | |
| tree | 78893f00f0894ebf17e756ab05a9093be10ec0e4 /engine/src/material.rs | |
| parent | aa4892e301c54fa02b2f81473c5ab3c14d88f9ae (diff) | |
refactor(engine): move default shader bindings system to main_render_pass mod
Diffstat (limited to 'engine/src/material.rs')
| -rw-r--r-- | engine/src/material.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engine/src/material.rs b/engine/src/material.rs index dd5a460..af982f4 100644 --- a/engine/src/material.rs +++ b/engine/src/material.rs @@ -26,6 +26,13 @@ impl Material { Builder::new() } + + pub fn textures(&self) -> impl Iterator<Item = &AssetHandle<Texture>> + { + [&self.ambient_map, &self.diffuse_map, &self.specular_map] + .into_iter() + .flatten() + } } impl Default for Material |
