大约有 754 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0059 秒)
Laya_社区(417) Laya2.0_文档(98) Laya3.0_api(64) Laya2.0_api(59) laya_api(54) Laya_示例(28) Laya3.0_文档(19) Laya2.0_示例(15)
... laya.display.Stage; import laya.filters.ColorFilter; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { private const ApePath:String = "res/img/monkey1.png"; private var apeTexture:Texture; public function Main() { // 不...
来源: Laya2.0_文档 发布时间: 20210715
...= Laya.Sprite; this.ape = new Sprite(); Laya.stage.addChild(this.ape); let texture = Laya.loader.getRes(apePath); this.ape.graphics.drawTexture(texture); this.ape.x = (Laya.stage.width - texture.width) / 2; this.ape.y = (Laya.stage.height - texture.height) / 2; } applayFilter() { // 创建一个发...
来源: Laya2.0_示例 发布时间: 20260303
... 例如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
用ide打包后的图片,Texture显示不出来? Sprite和Image可以显示出来,Texture报错、、、说找不到图片 代码 : Laya.loader.load([{url: "comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); function onLoaded(){ var aa = new Sprite(); Laya.sta...
来源: Laya_社区 发布时间: 20171226
# Texture2D概述 ###### *version :2.1.0 Update:2019-5-25* 纹理是增强计算机生成三维图像的真实感的有力工具。在没有纹理时,你的三维图像往往是像发亮的塑料(图1)。使用纹理后,能使你的网格、粒子、和界面更生动如图2。纹理是...
来源: Laya2.0_文档 发布时间: 20210714
# Texture2D概述 ###### *version :2.1.0 Update:2019-5-25* 纹理是增强计算机生成三维图像的真实感的有力工具。在没有纹理时,你的三维图像往往是像发亮的塑料(图1)。使用纹理后,能使你的网格、粒子、和界面更生动如图2。纹理是...
来源: Laya2.0_文档 发布时间: 20210715
# Texture2D概述 ###### *version :2.1.0 Update:2019-5-25* 纹理是增强计算机生成三维图像的真实感的有力工具。在没有纹理时,你的三维图像往往是像发亮的塑料(图1)。使用纹理后,能使你的网格、粒子、和界面更生动如图2。纹理是...
来源: Laya2.0_文档 发布时间: 20210715
...f("/"))+"/"); this.parseData(null,tSkBuffer); } __proto.parseData=function(texture,skeletonData,playbackRate){ (playbackRate===void 0)&& (playbackRate=30); if(!this._path&&this.url){ //MODIFIED:使用formatPath进行路径过滤 this._path=this.formatPath(this.url.slice(0,this.url.la...
来源: Laya_社区 发布时间: 20190419
...d("res/apes/monkey2.png", Handler.create(this, function() { var texture:Texture = Laya.loader.getRes("res/apes/monkey2.png"); var sp:Spirte = new Sprite(); sp.graphics.drawTexture(texture, 0, 0); sp.size(texture.width, texture.height); Laya.stage.a...
来源: Laya2.0_文档 发布时间: 20210715
..."../../res/threeDimen/scene/TerrainScene/Assets/HeightMap.png", clas: Laya.Texture2D, priority: 1, params: [true] }, { url: "../../res/threeDimen/scene/TerrainScene/Assets/AStarMap.png", clas: Laya.Texture2D, priority: 1, params: [true] } ]; Laya.loader.create(resource, Laya.Handler.create(this, onL...
来源: Laya_示例 发布时间: 20260303