MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / set_texture

Function set_texture

native/watchos/src/scene.rs:233–235  ·  view source on GitHub ↗
(handle: u32, tex: u32)

Source from the content-addressed store, hash-verified

231 mark_dirty(handle, DIRTY_MATERIAL, |n| { n.roughness = rough; n.metalness = metal; });
232}
233pub fn set_texture(handle: u32, tex: u32) {
234 mark_dirty(handle, DIRTY_MATERIAL, |n| n.texture = tex);
235}
236
237pub fn set_pbr_textures(handle: u32,
238 base_color: u32, normal: u32, metallic_roughness: u32,

Callers 1

Calls 1

mark_dirtyFunction · 0.85

Tested by

no test coverage detected