Class MaterialSample
Namespace: USD.NET.Unity
Assembly: solution.dll
Syntax
[Serializable]
public class MaterialSample : SampleBase
Constructors
Name | Description |
---|---|
Material |
|
Material |
|
Material |
Fields
Name | Description |
---|---|
displacement | |
required |
|
surface |
Methods
Name | Description |
---|---|
Bind(Scene, string, string) | Binds the prim to the given material. https://graphics.pixar.com/usd/docs/api/class_usd_shade_material.html#a116ed8259600f7a48f3792364252a4e1 |
Read |
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. |
Unbind(Scene, string) | Unbinds the prim from all materials. https://graphics.pixar.com/usd/docs/api/class_usd_shade_material.html#a6fc9d56d2e2e826aa3d96711c7b0e605 |