Capítulo 434 de 859

Chapter 434: MaxMipLevelNode

Core Idea

A special type of uniform node that computes the maximum mipmap level for a given texture node.

Key Concepts

  • texture : Texture (readonly): The texture.
  • textureNode : TextureNode (readonly): The texture node to compute the max mip level for.
  • updateType : string: The updateType is set to NodeUpdateType.FRAME since the node updates the texture once per frame in its [MaxMipLevelNode#update](MaxMipL…

Code Examples

const level = maxMipLevel( textureNode );
  • What it demonstrates: Typical usage of MaxMipLevelNode.

Reference Tables

Constructor

Signature
new MaxMipLevelNode( textureNode : TextureNode )

Properties

PropertyDescription
.texture : Texture (readonly)The texture.
.textureNode : TextureNode (readonly)The texture node to compute the max mip level for.
.updateType : stringThe updateType is set to NodeUpdateType.FRAME since the node updates the texture once per frame in its MaxMipLevelNode#update method.

Key Takeaways

  1. MaxMipLevelNode extends: EventDispatcher → Node → InputNode → UniformNode
  2. Most relevant properties: texture, textureNode, updateType.

Connects To