nst magFilters = ['NEAREST', 'LINEAR'];

        const minFilters = [
            'NEAREST',
            'LINEAR',
            'NEAREST_MIPMAP_NEAREST',
            'LINEAR_MIPMAP_NEAREST',
            'NEAREST_MIPMAP_LINEAR',
            'LINEAR_MIPMAP_LINEAR'
        ];

        const modes = [
            [gl.DEPTH_COMPONENT, 'DEPTH_COMPONENT'],
            [ext.STENCIL_INDEX_WEBGL, 'STENCIL_INDEX_WEBGL']
        ];

        const programs = [
            [readDepthProgram, 'depth'],
            [readSte