Capítulo 115 de 859

Chapter 115: HemisphereLightNode

Core Idea

Module for representing hemisphere lights as nodes.

Key Concepts

  • groundColorNode : UniformNode.<vec3>: Uniform node representing the light's ground color.
  • lightDirectionNode : Node.<vec3>: A node representing the light's direction.
  • lightPositionNode : UniformNode.<vec3>: Uniform node representing the light's position.

Reference Tables

Constructor

Signature
new HemisphereLightNode( light : HemisphereLight )

Properties

PropertyDescription
.groundColorNode : UniformNode.<vec3>Uniform node representing the light's ground color.
.lightDirectionNode : Node.<vec3>A node representing the light's direction.
.lightPositionNode : UniformNode.<vec3>Uniform node representing the light's position.

Methods

MethodDescription
.update( frame : NodeFrame )Overwritten to updated hemisphere light specific uniforms.

Key Takeaways

  1. HemisphereLightNode extends: EventDispatcher → Node → LightingNode → AnalyticLightNode
  2. Most relevant properties: groundColorNode, lightDirectionNode, lightPositionNode.
  3. Key methods: update.

Connects To