◆ GetMainTexture() [2/2]

static Texture GetMainTexture ( this IGraphicsMultiMaterialPropertyBlockInterface  blockInterfaceGetTextureFrom,
int  matIndex 
)
static
Parameters
blockInterfaceGetTextureFromthe interface used to access the MultiMaterialPropertyBlock that holds the texture to be returned.
matIndexspecified which material in the interface to get the texture of
Returns
The texture found in the MaterialPropertyBlockInterface specified by the matIndex parameter, via the blockInterfaceToGetTextureFrom.

References MaterialPropertyBlockInterfaceExtensions.defaultTextureID, IGraphicsMultiMaterialPropertyBlockInterface.GetPropertyBlock(), IGraphicsMultiMaterialPropertyBlockInterface.HasTexture(), and MaterialPropertyBlockInterfaceExtensions.neverRunMaterialChecks.

+ Here is the call graph for this function: