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

Function drawModelWithMaterial

src/models/index.ts:627–638  ·  view source on GitHub ↗
(
  material: number, mesh: Model,
  position: Vec3, scale: number, tint: Color,
)

Source from the content-addressed store, hash-verified

625/// Convenience wrapper around `drawMeshWithMaterial` that loops
626/// 0..mesh.meshCount internally.
627export function drawModelWithMaterial(
628 material: number, mesh: Model,
629 position: Vec3, scale: number, tint: Color,
630): void {
631 for (let i = 0; i < mesh.meshCount; i = i + 1) {
632 bloom_draw_material(
633 material, mesh.handle, i,
634 position.x, position.y, position.z, scale,
635 tint.r, tint.g, tint.b, tint.a,
636 );
637 }
638}
639
640export function loadModelAnimation(path: string): number {
641 return bloom_load_model_animation(path as any);

Callers

nothing calls this directly

Calls 1

bloom_draw_materialFunction · 0.50

Tested by

no test coverage detected