Phaser API Documentation

  Version: 
isNewNormalMap(texture, normalMap)

Description:

Checks to see if the given diffuse and normal map textures are already bound, or not.

Parameters:

name type description
texture WebGLTexture

The WebGL diffuse texture.

normalMap WebGLTexture

The WebGL normal map texture.

Returns:
Description:

Returns false if this combination is already set, or true if it's a new combination.

Type:
  • boolean
Since: 3.50.0