MaterialApplier¶
from acron.materials import MaterialApplier
- class MaterialApplier(loader, index: dict, anisotropy: int = 16)¶
Bases:
objectApplies a material index onto loaded GLBs, caching textures + Materials.
Stateful only for its caches; share one applier across several GLBs to reuse them. After
apply(), read.textured/.textureless/.missed/.uvlessfor a report (uvlessnames the textured materials that landed on geometry carrying no UVs, so could only be drawn flat – an asset-export problem, not a code one).anisotropyand the repeat-wrap/trilinear sampler defaults match Godot’s commontexture_filter=5(linear mipmap anisotropic) setup.Inheritance diagram
digraph inheritancea55bd25c3a { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "MaterialApplier" [URL="acron.materials.MaterialApplier.html#acron.materials.MaterialApplier",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="Applies a material index onto loaded GLBs, caching textures + Materials."]; }