Method ReadMaterial
ReadMaterial(Scene, string, MaterialSample, out string)
Reads the material associated with the geometry at the target path. If a valid material is bound, the "surface" shader is inspected, if valid, the shader ID is queried and returned via the shaderId output parameter. Returns true when shaderId is set.
Declaration
public static bool ReadMaterial(Scene scene, string geometryPath, MaterialSample materialSample, out string shaderId)
Parameters
Type | Name | Description |
---|---|---|
Scene | scene | |
string | geometryPath | |
MaterialSample | materialSample | |
string | shaderId |
Returns
Type | Description |
---|---|
bool |