[0]请问一下贴图材质颜色偏灰白色怎么解决啊?
在其他引擎里也遇到这样的问题,在贴图texture里设置了 SRGB 解决了,
请问laya是否有接口可以改动 SRGB 属性的?
我在load的代码是这样的: 设置了srgb 貌似没有效果
return new Promise( function( end_:Function ) {
let net_path_ = gg.get_net_url(path_);
Laya.loader.load(net_path_, {srgb: true, type: Laya.Loader.TEXTURE2D}).then((res : Laya.Texture2D)=>{
end_(res);
});
});
请问laya是否有接口可以改动 SRGB 属性的?
我在load的代码是这样的: 设置了srgb 貌似没有效果
return new Promise( function( end_:Function ) {
let net_path_ = gg.get_net_url(path_);
Laya.loader.load(net_path_, {srgb: true, type: Laya.Loader.TEXTURE2D}).then((res : Laya.Texture2D)=>{
end_(res);
});
});
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
phhh
赞同来自:
https://www.layaair.com/3.x/do ... .html