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

Function set_pbr

native/watchos/src/scene.rs:230–232  ·  view source on GitHub ↗
(handle: u32, rough: f32, metal: f32)

Source from the content-addressed store, hash-verified

228 mark_dirty(handle, DIRTY_MATERIAL, |n| n.color = rgba);
229}
230pub fn set_pbr(handle: u32, rough: f32, metal: f32) {
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}

Callers 2

apply_primitiveFunction · 0.85

Calls 1

mark_dirtyFunction · 0.85

Tested by

no test coverage detected