Method ReserveMaterial
ReserveMaterial(string)
Returns an observable sequence that retrieves the material shader with the specified name.
public static IObservable<Material> ReserveMaterial(string shaderName)
Parameters
shaderName
stringThe name of the shader program to retrieve.
Returns
- IObservable<Material>
A sequence containing a single instance of the Material class matching the specified shader name; or an exception, if no such shader exists.