Function: findImageNode()
findImageNode(
materialX,rootChild,maxNodes):any
Breadth-first search, starting at whatever node rootChild (an input
wrapper, e.g. the surface shader's base_color input) connects to, for
the nearest <image>/<tiledimage> node - the only node categories that
actually consume a texcoord the way this module cares about. Bounded by
maxNodes since a MaterialX graph can be arbitrarily large/cyclic-looking
through interface references; this only needs to answer "is there an
image lookup somewhere feeding albedo, and if so which one", not
enumerate the whole graph.
Parameters
materialX
any
rootChild
any
maxNodes
number
Returns
any