Preparing search index...

    How a Editor.Assets.PassInfo should determine its depth compared to others.

        const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
    const assetManager = model.project.assetManager;

    // Find a Material and configure depth testing on its first pass
    const materials = assetManager.assets.filter(a => a.isOfType('Material')) as Editor.Assets.Material[];
    if (materials.length === 0) return;

    const mat = materials[0];
    const pass = mat.passInfos[0];

    // Enable depth testing with LessEqual (standard for 3D rendering)
    pass.depthTest = true;
    pass.depthFunction = Editor.Assets.DepthFunction.LessEqual;
    console.log(`"${mat.name}" depthTest: on, depthFunction: LessEqual (${pass.depthFunction})`);

    // Switch to Always (renders regardless of depth — useful for overlays)
    pass.depthFunction = Editor.Assets.DepthFunction.Always;
    console.log(`Set to Always (${pass.depthFunction})`);
    Index

    Enumeration Members

    Always: number

    Always passes the depth test.

    Equal: number

    Passes if fragment depth equals stored depth.

    Greater: number

    Passes if fragment depth is greater than stored depth.

    GreaterEqual: number

    Passes if fragment depth is greater than or equal to stored depth.

    Less: number

    Passes if fragment depth is less than stored depth.

    LessEqual: number

    Passes if fragment depth is less than or equal to stored depth.

    Never: number

    Never passes the depth test.

    NotEqual: number

    Passes if fragment depth does not equal stored depth.