Capítulo 72 de 859

Chapter 72: MeshLambertNodeMaterial

Core Idea

Node material version of MeshLambertMaterial.

Key Concepts

  • isMeshLambertNodeMaterial : boolean (readonly): This flag can be used for type testing.
  • lights : boolean: Set to true because lambert materials react on lights.

Reference Tables

Constructor

Signature
new MeshLambertNodeMaterial( parameters : Object )

Properties

PropertyDescription
.isMeshLambertNodeMaterial : boolean (readonly)This flag can be used for type testing.
.lights : booleanSet to true because lambert materials react on lights.

Methods

MethodDescription
.setupEnvironment( builder : NodeBuilder ) : BasicEnvironmentNode.<vec3>Overwritten since this type of material uses BasicEnvironmentNode to implement the default environment mapping.
.setupLightingModel() : PhongLightingModelSetups the lighting model.

Key Takeaways

  1. MeshLambertNodeMaterial extends: EventDispatcher → Material → NodeMaterial
  2. Most relevant properties: isMeshLambertNodeMaterial, lights.
  3. Key methods: setupEnvironment, setupLightingModel.

Connects To