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

Method set_material_emissive_factor

native/shared/src/scene.rs:580–585  ·  view source on GitHub ↗
(&mut self, handle: f64, r: f32, g: f32, b: f32)

Source from the content-addressed store, hash-verified

578 }
579
580 pub fn set_material_emissive_factor(&mut self, handle: f64, r: f32, g: f32, b: f32) {
581 if let Some(node) = self.nodes.get_mut(handle) {
582 node.material.emissive = [r, g, b];
583 node.mat_dirty = true;
584 }
585 }
586
587 /// Prepare GPU resources for all visible nodes. Must be called before render().
588 /// Creates/updates vertex buffers, index buffers, and uniform bind groups.

Callers 5

bloom_scene_attach_modelFunction · 0.80
bloom_scene_attach_modelFunction · 0.80
bloom_scene_attach_modelFunction · 0.80
bloom_scene_attach_modelFunction · 0.80
bloom_scene_attach_modelFunction · 0.80

Calls 1

get_mutMethod · 0.80

Tested by

no test coverage detected