Capítulo 80 de 859

Chapter 80: MeshPhysicalNodeMaterial

Core Idea

Node material version of MeshPhysicalMaterial.

Key Concepts

  • anisotropyNode : Node.<float>: The anisotropy of physical materials is by default inferred from the anisotropy property. This node property allows to overwrite the defa…
  • attenuationColorNode : Node.<vec3>: The attenuation color of physical materials is by default inferred from the attenuationColor property. This node property allows to overw…
  • attenuationDistanceNode : Node.<float>: The attenuation distance of physical materials is by default inferred from the attenuationDistance property. This node property allows to…
  • clearcoatNode : Node.<float>: The clearcoat of physical materials is by default inferred from the clearcoat and clearcoatMap properties. This node property allows to…
  • clearcoatNormalNode : Node.<vec3>: The clearcoat normal of physical materials is by default inferred from the clearcoatNormalMap property. This node property allows to over…
  • clearcoatRoughnessNode : Node.<float>: The clearcoat roughness of physical materials is by default inferred from the clearcoatRoughness and clearcoatRoughnessMap properties. …
  • dispersionNode : Node.<float>: The dispersion of physical materials is by default inferred from the dispersion property. This node property allows to overwrite the defa…
  • iorNode : Node.<float>: The ior of physical materials is by default inferred from the ior property. This node property allows to overwrite the default and define…
  • iridescenceIORNode : Node.<float>: The iridescence IOR of physical materials is by default inferred from the iridescenceIOR property. This node property allows to overwrite…
  • iridescenceNode : Node.<float>: The iridescence of physical materials is by default inferred from the iridescence property. This node property allows to overwrite the de…

Reference Tables

Constructor

Signature
new MeshPhysicalNodeMaterial( parameters : Object )

Properties

PropertyDescription
.anisotropyNode : Node.<float>The anisotropy of physical materials is by default inferred from the anisotropy property. This node property allows to overwrite the default and define the anisotropy with a node instead.
.attenuationColorNode : Node.<vec3>The attenuation color of physical materials is by default inferred from the attenuationColor property. This node property allows to overwrite the default and define the attenuation color with a nod…
.attenuationDistanceNode : Node.<float>The attenuation distance of physical materials is by default inferred from the attenuationDistance property. This node property allows to overwrite the default and define the attenuation distance w…
.clearcoatNode : Node.<float>The clearcoat of physical materials is by default inferred from the clearcoat and clearcoatMap properties. This node property allows to overwrite the default and define the clearcoat with a node …
.clearcoatNormalNode : Node.<vec3>The clearcoat normal of physical materials is by default inferred from the clearcoatNormalMap property. This node property allows to overwrite the default and define the clearcoat normal with a nod…
.clearcoatRoughnessNode : Node.<float>The clearcoat roughness of physical materials is by default inferred from the clearcoatRoughness and clearcoatRoughnessMap properties. This node property allows to overwrite the default and defin…
.dispersionNode : Node.<float>The dispersion of physical materials is by default inferred from the dispersion property. This node property allows to overwrite the default and define the dispersion with a node instead.
.iorNode : Node.<float>The ior of physical materials is by default inferred from the ior property. This node property allows to overwrite the default and define the ior with a node instead.
.iridescenceIORNode : Node.<float>The iridescence IOR of physical materials is by default inferred from the iridescenceIOR property. This node property allows to overwrite the default and define the iridescence IOR with a node inst…
.iridescenceNode : Node.<float>The iridescence of physical materials is by default inferred from the iridescence property. This node property allows to overwrite the default and define the iridescence with a node instead.
.iridescenceThicknessNode : Node.<float>The iridescence thickness of physical materials is by default inferred from the iridescenceThicknessRange and iridescenceThicknessMap properties. This node property allows to overwrite the defaul…
.isMeshPhysicalNodeMaterial : boolean (readonly)This flag can be used for type testing.
.sheenNode : Node.<vec3>The sheen of physical materials is by default inferred from the sheen, sheenColor and sheenColorMap properties. This node property allows to overwrite the default and define the sheen with a no…
.sheenRoughnessNode : Node.<float>The sheen roughness of physical materials is by default inferred from the sheenRoughness and sheenRoughnessMap properties. This node property allows to overwrite the default and define the sheen …
.specularColorNode : Node.<vec3>The specular color of physical materials is by default inferred from the specularColor and specularColorMap properties. This node property allows to overwrite the default and define the specular …
.specularIntensityNode : Node.<float>The specular intensity of physical materials is by default inferred from the specularIntensity and specularIntensityMap properties. This node property allows to overwrite the default and define t…
.thicknessNode : Node.<float>The thickness of physical materials is by default inferred from the thickness and thicknessMap properties. This node property allows to overwrite the default and define the thickness with a node …
.transmissionNode : Node.<float>The transmission of physical materials is by default inferred from the transmission and transmissionMap properties. This node property allows to overwrite the default and define the transmission …
.useAnisotropy : booleanWhether the lighting model should use anisotropy or not.
.useClearcoat : booleanWhether the lighting model should use clearcoat or not.
.useDispersion : booleanWhether the lighting model should use dispersion or not.
.useIridescence : booleanWhether the lighting model should use iridescence or not.
.useSheen : booleanWhether the lighting model should use sheen or not.
.useTransmission : booleanWhether the lighting model should use transmission or not.

Methods

MethodDescription
.setupClearcoatNormal() : Node.<vec3>Setups the clearcoat normal node.
.setupLightingModel() : PhysicalLightingModelSetups the lighting model.
.setupSpecular()Setups the specular related node variables.
.setupVariants( builder : NodeBuilder )Setups the physical specific node variables.

Key Takeaways

  1. MeshPhysicalNodeMaterial extends: EventDispatcher → Material → NodeMaterial → MeshStandardNodeMaterial
  2. Most relevant properties: anisotropyNode, attenuationColorNode, attenuationDistanceNode, clearcoatNode.
  3. Key methods: setupClearcoatNormal, setupLightingModel, setupSpecular, setupVariants.

Connects To