Capítulo 151 de 859

Chapter 151: ToonLightingModel

Core Idea

Represents the lighting model for a toon material. Used in MeshToonNodeMaterial.

Reference Tables

Constructor

Signature
new ToonLightingModel()

Methods

MethodDescription
.direct( lightData : Object, builder : NodeBuilder )Implements the direct lighting. Instead of using a conventional smooth irradiance, the irradiance is reduced to a small number of discrete shades to create a comic-like, flat look.
.indirect( builder : NodeBuilder )Implements the indirect lighting.

Key Takeaways

  1. ToonLightingModel extends: LightingModel
  2. Key methods: direct, indirect.

Connects To