大约有 5 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0058 秒)
... 例如Mesh-BlinnPhong.ps这个文件中: #ifdef LIGHTMAP finalDiffuse=texture2D(u_LightMap, v_LightMapUV).rgb*2.0; //float exponent = texture2D(u_LightMap, v_LightMapUV).a; //finalDiffuse = texture2D(u_LightMap, v_LightMapUV).rgb; //float ratio = pow(2.0, exponent * 255.0 - (128.0 + 8.0)); //fina...
来源: Laya_社区 发布时间: 20180223
...可以参照下面的示例纹理--GPU压缩ASTC先加载纹理再赋值给texture。 ui.zip 2022-09-13 0 2 分享 微博 QZONE 微信 1567600631用户 赞同来自: arm命令行有个预乘参数看是不是这个 -pp-premultiply Run a preprocess over the image that ...
来源: Laya_社区 发布时间: 20220824
...e precision loss occurs on IE. Try separating color and alpha to different textures. 2018-04-14 0 0 分享 微博 QZONE 微信 InJoins 赞同来自: 又一个GITHUB上的相关信息: Some implementations of HTMLCanvasElement's CanvasRenderingContext2D store color values internally in premultiplie...
来源: Laya_社区 发布时间: 20180414
...(type !== "nativeimage") { image = new Texture2D(); var alpha = Laya.Browser.onFirefox; image.loadImageSource(imageData,alpha); } _t...
来源: Laya_社区 发布时间: 20210629
...,谢谢了var spr:laya.display.Sprite = new laya.display.Sprite(); spr.texture = tx; Laya.stage.addChild(spr); spr.x = 300; spr.y = 100; var color:Array = ; color.push( 0, 0, 0, 0, 255, 0, 0, 0, 0, 255, 0, 0, 0, 0, 255, 0, 0, 0, 1, 0); var filter:ColorFilter = new ColorFilter(color); spr.filters =...
来源: Laya_社区 发布时间: 20170825