Capítulo 83 de 859

Chapter 83: MeshStandardNodeMaterial

Core Idea

Node material version of MeshStandardMaterial.

Key Concepts

  • emissiveNode : Node.<vec3>: The emissive color of standard materials is by default inferred from the emissive, emissiveIntensity and emissiveMap properties. This…
  • isMeshStandardNodeMaterial : boolean (readonly): This flag can be used for type testing.
  • lights : boolean: Set to true because standard materials react on lights.
  • metalnessNode : Node.<float>: The metalness of standard materials is by default inferred from the metalness, and metalnessMap properties. This node property allows t…
  • roughnessNode : Node.<float>: The roughness of standard materials is by default inferred from the roughness, and roughnessMap properties. This node property allows t…

Reference Tables

Constructor

Signature
new MeshStandardNodeMaterial( parameters : Object )

Properties

PropertyDescription
.emissiveNode : Node.<vec3>The emissive color of standard materials is by default inferred from the emissive, emissiveIntensity and emissiveMap properties. This node property allows to overwrite the default and define th…
.isMeshStandardNodeMaterial : boolean (readonly)This flag can be used for type testing.
.lights : booleanSet to true because standard materials react on lights.
.metalnessNode : Node.<float>The metalness of standard materials is by default inferred from the metalness, and metalnessMap properties. This node property allows to overwrite the default and define the metalness with a node…
.roughnessNode : Node.<float>The roughness of standard materials is by default inferred from the roughness, and roughnessMap properties. This node property allows to overwrite the default and define the roughness with a node…

Methods

MethodDescription
.setupEnvironment( builder : NodeBuilder ) : EnvironmentNode.<vec3>Overwritten since this type of material uses EnvironmentNode to implement the PBR (PMREM based) environment mapping. Besides, the method honors Scene.environment.
.setupLightingModel() : PhysicalLightingModelSetups the lighting model.
.setupSpecular()Setups the specular related node variables.
.setupVariants( builder : NodeBuilder )Setups the standard specific node variables.

Key Takeaways

  1. MeshStandardNodeMaterial extends: EventDispatcher → Material → NodeMaterial
  2. Most relevant properties: emissiveNode, isMeshStandardNodeMaterial, lights, metalnessNode.
  3. Key methods: setupEnvironment, setupLightingModel, setupSpecular, setupVariants.

Connects To