@pixi/3d
    Preparing search index...

    Interface EmissiveProps

    Runtime controls for a material's glow, as material.emissive

    Present only when the material was built with an emissive group. Changes never recompile the shader.

    const sign = new Material3D({ emissive: { color: 0xff0044 } });
    sign.emissive!.strength = 2;
    interface EmissiveProps {
        strength: number;
        texture: Texture;
        get color(): number;
        set color(value: ColorSource): void;
    }
    Index
    strength: number

    Multiplier on the glow; above 1 it goes past white, which bloom picks up

    material.emissive!.strength = 4;
    
    texture: Texture

    Glow map, multiplied by color

    material.emissive!.texture = await Assets.load('lit-windows.png');
    
    • get color(): number

      Glow colour; takes any ColorSource and reads back a hex number, like Container.tint

      Returns number

      material.emissive!.color = 'red';
      
    • set color(value: ColorSource): void

      Sets the glow colour from any ColorSource

      Parameters

      Returns void