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

Function setSceneNodeColor

src/scene/index.ts:209–211  ·  view source on GitHub ↗
(handle: SceneNodeHandle, r: number, g: number, b: number, a: number = 1)

Source from the content-addressed store, hash-verified

207 * Color components are 0-1 (not 0-255).
208 */
209export function setSceneNodeColor(handle: SceneNodeHandle, r: number, g: number, b: number, a: number = 1): void {
210 bloom_scene_set_material_color(handle, r, g, b, a);
211}
212
213/**
214 * Set PBR material properties (roughness and metalness).

Callers 14

applyTintFunction · 0.90
main.tsFile · 0.90
interactive.tsFile · 0.90
wallSystemFunction · 0.90
slabSystemFunction · 0.90
wallSystemFunction · 0.90
main.tsFile · 0.90
shadows.tsFile · 0.90
makeWallFunction · 0.90
makeBoxFunction · 0.90
placeSphereFunction · 0.90
placeCubeFunction · 0.90

Calls 1

Tested by

no test coverage detected