MaterialResource class
Material resources are base texture e.g. cotton, plastic.
Signature:
declare class MaterialResource extends AbstractTexturedResource<TOptions, TSources> implements AssignableInterface<TexturedResourceInterfaceTOptions<TOptions>, TexturedResourceInterfaceTSources<TSources>>, TexturedResourceInterface<TOptions, TSources>
Extends: AbstractTexturedResource<TOptions, TSources>
Implements: AssignableInterface<TexturedResourceInterfaceTOptions<TOptions>, TexturedResourceInterfaceTSources<TSources>>, TexturedResourceInterface<TOptions, TSources>
Remarks
You'd want to use a material resource when you want a base material applied to a node. For example, a blue cotton applied to an entire t-shirt, or a white ceramic applied to a mug.
Methods
Method |
Modifiers |
Description |
---|---|---|
Convenience method for setting colors. |