Capítulo 92 de 859

Chapter 92: ShadowNodeMaterial

Core Idea

Node material version of ShadowMaterial.

Key Concepts

  • isShadowNodeMaterial : boolean (readonly): This flag can be used for type testing.
  • lights : boolean: Set to true because so it's possible to implement the shadow mask effect.
  • transparent : boolean: Overwritten since shadow materials are transparent by default.

Reference Tables

Constructor

Signature
new ShadowNodeMaterial( parameters : Object )

Properties

PropertyDescription
.isShadowNodeMaterial : boolean (readonly)This flag can be used for type testing.
.lights : booleanSet to true because so it's possible to implement the shadow mask effect.
.transparent : booleanOverwritten since shadow materials are transparent by default.

Methods

MethodDescription
.setupLightingModel() : ShadowMaskModelSetups the lighting model.

Key Takeaways

  1. ShadowNodeMaterial extends: EventDispatcher → Material → NodeMaterial
  2. Most relevant properties: isShadowNodeMaterial, lights, transparent.
  3. Key methods: setupLightingModel.

Connects To