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

Function applyTint

src/world/loader.ts:326–328  ·  view source on GitHub ↗
(node: SceneNodeHandle, tint: Vec4Lit)

Source from the content-addressed store, hash-verified

324// by prefab expansion (where children inherit the parent entity's tint unless
325// they override it).
326function applyTint(node: SceneNodeHandle, tint: Vec4Lit): void {
327 setSceneNodeColor(node, tint[0], tint[1], tint[2], tint[3]);
328}
329
330// ---- factory helpers used by the editor to create new data ----------------
331

Callers 2

spawnModelEntityFunction · 0.85
spawnPrefabEntityFunction · 0.85

Calls 1

setSceneNodeColorFunction · 0.90

Tested by

no test coverage detected