Capítulo 453 de 859

Chapter 453: PMREMNode

Core Idea

This node represents a PMREM which is a special type of preprocessed environment map intended for PBR materials.

Key Concepts

  • levelNode : Node.<float>: The level node.
  • updateBeforeType : string: The updateBeforeType is set to NodeUpdateType.RENDER.
  • uvNode : Node.<vec2>: The uv node.
  • value : Texture: The node's texture value.

Code Examples

const material = new MeshStandardNodeMaterial();
material.envNode = pmremTexture( envMap );
  • What it demonstrates: Typical usage of PMREMNode.

Reference Tables

Constructor

Signature
new PMREMNode( value : Texture, uvNode : Node.<vec2>, levelNode : Node.<float> )

Properties

PropertyDescription
.levelNode : Node.<float>The level node.
.updateBeforeType : stringThe updateBeforeType is set to NodeUpdateType.RENDER.
.uvNode : Node.<vec2>The uv node.
.value : TextureThe node's texture value.

Methods

MethodDescription
.updateFromTexture( texture : Texture )Uses the given PMREM texture to update internal values.

Key Takeaways

  1. PMREMNode extends: EventDispatcher → Node → TempNode
  2. Most relevant properties: levelNode, updateBeforeType, uvNode, value.
  3. Key methods: updateFromTexture.

Connects To