Phaser API Documentation

  Version: 
setNormalMap(texture)

Description:

Binds a texture directly to texture unit one then activates it. If the texture is already at unit one, it skips the bind. Make sure to call clearNormalMap after using this method.

Parameters:

name type description
texture WebGLTexture

The WebGL texture that needs to be bound.

Since: 3.50.0