Small World Engine API Reference - v0.46.1
    Preparing search index...

    Interface LambertMaterialOptions

    Configuration options for Lambert material.

    interface LambertMaterialOptions {
        color?: Color;
        diffuseMap?: Texture;
        normalMap?: Texture;
        normalScale?: Vector2D;
    }
    Index

    Properties

    color?: Color

    The base color of the material. Defaults to white.

    diffuseMap?: Texture

    The diffuse texture map. Defaults to undefined.

    normalMap?: Texture

    The normal texture map. Defaults to undefined.

    normalScale?: Vector2D

    Scale factor for the normal map to control strength and flip X/Y. Defaults to (1, 1).