MaterialAsset#

class gs_nyx.nyx_py_sdk.MaterialAsset#

Bases: object

A physically-based material description. When used as ‘InstanceAsset.matOverride’, only the fields whose ‘EMaterialProperty’ bit is set are applied.

Constructors

MaterialAsset()

Construct a default-initialized material asset.

Methods

clear_properties

Disable the given EMaterialProperty flag in 'properties'.

has_properties

Return True if the given EMaterialProperty flag is set in 'properties'.

set_properties

Enable the given EMaterialProperty flag in 'properties'.

Attributes

albedoColor

Linear RGBA base color factor.

albedoTexture

Path to the albedo (base color) texture.

anisotropy

Anisotropy factor in [-1, 1] when the Anisotropy feature is enabled.

armTexture

Path to the packed AO/roughness/metalness texture.

clipping

Alpha clipping mode.

cutOff

Alpha cutoff threshold used when clipping is enabled.

emission

Linear RGB emissive radiance factor.

emissionTexture

Path to the emission texture.

features

Optional shading feature set (e.g. anisotropy).

metalness

Metalness in [0, 1].

normalMode

Back-face normal handling mode.

normalTexture

Path to the tangent-space normal texture.

opacity

Opacity mode (opaque or transparent).

perceptualRoughness

Perceptual roughness in [0, 1].

sampler

'<filter>_<mode>', where <filter> is one of ['linear', 'point'/'nearest', 'aniso4', 'aniso8', 'aniso16'] and <mode> is one of ['clamp', 'wrap'/'repeat', 'mirror', 'mirror-once', 'border'].

sidedness

Face culling mode.

uvScale

Per-channel UV scale applied to textures.