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

absorption

Volume absorption coefficient (RGB, per unit distance) for transmissive materials.

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).

ior

Index of refraction used by transmissive materials (glTF default 1.5).

metalness

Metalness in [0, 1].

normalMode

Back-face normal handling mode.

normalTexture

Path to the tangent-space normal texture.

opacity

Opacity mode (opaque, transparent or transmissive).

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.

thickness

Volume thickness in mesh local space for transmissive materials; 0 means thin-walled.

transmission

Fraction of the non-reflected light passing through a transmissive material, in [0, 1].

uvScale

Per-channel UV scale applied to textures.