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

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.