[0]关于是否支持astc格式问题

我看官方的例子直接粗暴的判断是否手机直接默认支持ktx了 是否得加个接口啊 这种写法有点不负责啊 


[code]比如这种返回接口const ext = gl.getExtension('WEBGL_compressed_texture_astc');
ext.getSupportedProfiles(); // ["ldr"]
[/code]
已邀请:

1567600631用户

赞同来自:

    /**
     * 判断是否支持astc格式
     */
    public static get isASTC():boolean{
        var str =Laya["LayaGL"].instance.getExtension('WEBGL_compressed_texture_astc');
        if(str){
            return true
        }
        return false;
    }

要回复问题请先

商务合作
商务合作