babylon.quarks - v1.0.0
    Preparing search index...

    Interface ParticleMaterialSource

    What a ParticleSystem reads its draw settings from: a Babylon material (StandardMaterial, PBRMaterial, a node material, …), or a material entry of an effect file once its texture slots are resolved to textures, as ParticleSystem.fromJSON does. Each field is read only when it is there, so any material fits; the particles are still drawn with quarks' own shaders. The particle texture is the first slot that holds a Texture.

    interface ParticleMaterialSource {
        albedoTexture?: BaseTexture | null;
        alpha?: number;
        alphaCutOff?: number;
        alphaCutOffValue?: number;
        alphaMode?: number;
        baseTexture?: BaseTexture | null;
        diffuseTexture?: BaseTexture | null;
        disableDepthTest?: boolean;
        disableDepthWrite?: boolean;
        emissiveTexture?: BaseTexture | null;
        environmentTexture?: BaseTexture | null;
        forceDepthWrite?: boolean;
        opacityTexture?: BaseTexture | null;
        reflectionAtlas?: BaseTexture | null;
        reflectionLevel?: number;
        reflectionTexture?: BaseTexture | null;
        transparencyMode?: number | null;
        needAlphaBlending?(): boolean;
    }
    Index
    albedoTexture?: BaseTexture | null

    A PBR material's base colour texture.

    alpha?: number

    Opacity, read for transparent when there is no needAlphaBlending.

    alphaCutOff?: number

    The alpha test cutoff.

    alphaCutOffValue?: number

    The alpha test cutoff, as some materials name it.

    alphaMode?: number

    A Babylon alpha mode constant.

    baseTexture?: BaseTexture | null

    A base texture, read last.

    diffuseTexture?: BaseTexture | null

    A standard material's diffuse texture.

    disableDepthTest?: boolean

    Inverted into depthTest.

    disableDepthWrite?: boolean

    Inverted into depthWrite.

    emissiveTexture?: BaseTexture | null

    An emissive texture, read when there is no albedo or diffuse texture.

    environmentTexture?: BaseTexture | null

    A PBR material's environment texture, read when there is no reflection texture.

    forceDepthWrite?: boolean

    Read for depthWrite when there is no disableDepthWrite.

    opacityTexture?: BaseTexture | null

    An opacity texture, read when there is none of the above.

    reflectionAtlas?: BaseTexture | null

    A 3×2 env atlas for the reflection; the system stores the atlas it builds from a cube here.

    reflectionLevel?: number

    How strong the reflection is; the reflection texture's level when unset.

    reflectionTexture?: BaseTexture | null

    The reflection texture; a cube is drawn through a 3×2 atlas built from it.

    transparencyMode?: number | null

    The alpha test cutoff is read only in an alpha-test mode (1 or 3).