MaterialAsset#
- class gs_nyx.nyx_py_sdk.MaterialAsset#
Bases:
objectA physically-based material description. When used as ‘InstanceAsset.matOverride’, only the fields whose ‘EMaterialProperty’ bit is set are applied.
Constructors
Construct a default-initialized material asset.
Methods
Disable the given EMaterialProperty flag in 'properties'.
Return True if the given EMaterialProperty flag is set in 'properties'.
Enable the given EMaterialProperty flag in 'properties'.
Attributes
Volume absorption coefficient (RGB, per unit distance) for transmissive materials.
Linear RGBA base color factor.
Path to the albedo (base color) texture.
Anisotropy factor in [-1, 1] when the Anisotropy feature is enabled.
Path to the packed AO/roughness/metalness texture.
Alpha clipping mode.
Alpha cutoff threshold used when clipping is enabled.
Linear RGB emissive radiance factor.
Path to the emission texture.
Optional shading feature set (e.g. anisotropy).
Index of refraction used by transmissive materials (glTF default 1.5).
Metalness in [0, 1].
Back-face normal handling mode.
Path to the tangent-space normal texture.
Opacity mode (opaque, transparent or transmissive).
Perceptual roughness in [0, 1].
'<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'].
Face culling mode.
Volume thickness in mesh local space for transmissive materials; 0 means thin-walled.
Fraction of the non-reflected light passing through a transmissive material, in [0, 1].
Per-channel UV scale applied to textures.