大约有 2,258 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0087 秒)
Laya_社区(1808) Laya3.0_api(129) laya_api(84) Laya2.0_api(82) Laya2.0_文档(76) Laya_示例(36) Laya3.0_文档(28) Laya2.0_示例(15)
相机texture内模型移动的问题 我是参照官方这个demo(https://layaair2.ldc2.layabox.com/demo2/?language=zh&category=3d&group=Advance&name=Scene2DPlayer3D)做的2D场景加载3D模型,但是我的地图上需要加上百个人物和怪物,demo中的方式每个3D模...
来源: Laya_社区 发布时间: 20220613
...换吗? 图片纹理切换的案例代码: ape.graphics.clear(); var texture = Laya.loader.getRes(textureUrl); ape.graphics.drawTexture(texture, 0, 0); Laya.Animation()这样的动画有类似纹理切换这样的方法吗? 2017-12-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20171205
...ltDFG Hierarchy PBRDefaultDFG Index Accessors defaultDFG Methods DefaultDfgTexture Accessors Static defaultDFG get defaultDFG(): Texture2D set defaultDFG(value: Texture2D): void Defined in laya/d3/shader/pbr/PBRDefaultDFG.ts:13 Returns Texture2D Defined in laya/d3/shader/pbr/PBRDefaultDFG.ts:16 Para...
来源: Laya3.0_api 发布时间: 20231102
...chy DrawTrianglesCmd Index Properties alpha blendMode color indices matrix texture uvs vertices x y ID Methods getBoundPoints recover Properties alpha alpha: number Defined in laya/display/cmd/DrawTrianglesCmd.ts:46 alpha blendMode blendMode: string | null Defined in laya/display/cmd/DrawTrianglesCm...
来源: Laya3.0_api 发布时间: 20231115
...9, 129)); var terMaterial = new Laya.TerrainMaterial(); terMaterial.diffuseTexture1=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture2=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture3=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture4=new Laya.Texture2D.lo...
来源: Laya_社区 发布时间: 20170620
...sendReq(req) ; } 传过去的是bitmap: var htmlCanvas:HTMLCanvas; var texture:Texture; htmlCanvas = Laya.stage.drawToCanvas(Laya.stage.width,Laya.stage.height,0,0); texture = new Texture(htmlCanvas); texture.bitmap; 2018-03-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20180329
... 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
...if(v_Discard!=0.0) discard; #ifdef TINTCOLOR gl_FragColor*=texture2D(u_texture,v_TextureCoordinate)*u_Tintcolor*2.0*v_Color; #else gl_FragColor*=texture2D(u_texture,v_TextureCoordinate)*v_Color; #endif #else #ifdef TINTCOLOR gl_FragColor*=u_Tintcolor*2.0*v_C...
来源: Laya_社区 发布时间: 20190802
...aURL(); var htmlCanvas:Laya.HTMLCanvas = sp.drawToCanvas(375,440,0,0); var texture:Laya.Texture = new Laya.Texture(htmlCanvas); var sps:Laya.Sprite = new Laya.Sprite().pos(this.mouse_x,this.mouse_y+100); sps.graphics.drawTexture(texture); Laya.stage.addChild(sps); 代码有什么问题吗 为...
来源: Laya_社区 发布时间: 20180412
...eMat: Laya.StandardMaterial = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var boxCollider = plane.addComponent(Laya.BoxCollider) as ...
来源: Laya_社区 发布时间: 20180820