MaterialResource class

Material resources are base texture e.g. cotton, plastic.

Signature:

declare class MaterialResource extends AbstractTexturedResource<MaterialResourceOptions, MaterialResourceSources> implements AssignableInterface<TexturedResourceInterfaceTOptions<MaterialResourceOptions>, TexturedResourceInterfaceTSources<MaterialResourceSources>>, TexturedResourceInterface<MaterialResourceOptions, MaterialResourceSources> 

Extends: AbstractTexturedResource<MaterialResourceOptions, MaterialResourceSources>

Implements: AssignableInterface<TexturedResourceInterfaceTOptions<MaterialResourceOptions>, TexturedResourceInterfaceTSources<MaterialResourceSources>>, TexturedResourceInterface<MaterialResourceOptions, MaterialResourceSources>

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

setColor(color, key)

Convenience method for setting colors.

Get in touch

We'd love to learn more about your vision and how we can help.

PressPrivacyTermsSupportCopyright © 2024 Core3D, Inc. All Rights Reserved.