Verge3D PzLib API — NormalGen

# NormalGen

#### (constant) NormalGen :Object

Normal Map Generator. Based on NormalMap Online by Christian Petry.
Source: https://github.com/cpetry/NormalMap-Online
Live: https://cpetry.github.io/NormalMap-Online/
The NormalGen.convert() method converts a pre-loaded image to a normal map, returned as a new image in Data URL format.

    Parameters: {
        width: 256, // pixels
        height: 256, // pixels
        strength: 2.5, // 0.01 to 5
        level: 7.0, // 4 to 10
        blur: 0.0, // -32 to 32
        filter: 'Sobel', // or 'Scharr'
        invertR: false,
        invertG: false,
        invertHeight: false,
    }

##### Type:

- Object