(handle: u32, rough: f32, metal: f32)
| 228 | mark_dirty(handle, DIRTY_MATERIAL, |n| n.color = rgba); |
| 229 | } |
| 230 | pub fn set_pbr(handle: u32, rough: f32, metal: f32) { |
| 231 | mark_dirty(handle, DIRTY_MATERIAL, |n| { n.roughness = rough; n.metalness = metal; }); |
| 232 | } |
| 233 | pub fn set_texture(handle: u32, tex: u32) { |
| 234 | mark_dirty(handle, DIRTY_MATERIAL, |n| n.texture = tex); |
| 235 | } |
no test coverage detected