• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 207 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0042 秒)

61. 物理碰撞器(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 70%]

...//新建材质 var planeMat:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/grass.png", Handler.create(null, function(tex:Texture2D):void { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Vector4(10, 10, 0, 0); //设...

来源: Laya2.0_文档 发布时间: 20210714

62. Laya.BlinnPhongMaterial.RENDERMODE_TRANSPARENT设置透明度不行了? [ 70%]

... Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial();         Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) {             material.albedoTexture = tex;         }));         material.albedoColor = new Laya.Vector4(1.0, 1.0, 1.0, ...

来源: Laya_社区 发布时间: 20190126

63. IDE创建3D示例项目(JavaScript-3D基础(JS)-快速开始一个LayaAir3D项目) [ 70%]

... 45, 0), false, false); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex) { material.albedoTexture = tex; })); box.meshRenderer.material = material; ``` #####

来源: Laya2.0_文档 发布时间: 20210715

64. IDE创建3D示例项目(ActionScript-3D基础(AS3)-快速开始一个LayaAir3D项目) [ 69%]

...false, false); var material:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(null, function(tex:Texture2D):void { material.albedoTexture = tex; })); box.meshRenderer.material = material; ``` #####

来源: Laya2.0_文档 发布时间: 20210714

65. IDE创建3D示例项目(TypeScript-3D基础(TS)-快速开始一个LayaAir3D项目) [ 69%]

...ar material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex:Laya.Texture2D) { material.albedoTexture = tex; })); box.meshRenderer.material = material; ``` #####

来源: Laya2.0_文档 发布时间: 20210714

66. 新人求教!!! [ 68%]

...g = !this.flag)? this.monkey2:this.monkey1;   //获取图片资源   var texture:Laya.Texture = Laya.loader.getRes(imgUrl);   //绘制纹理   this.img.graphics.drawTexture(texture);   //设置纹理宽高   this.img.size(texture.width, texture.height); <!--  我想把加粗部分换成  ...

来源: Laya_社区 发布时间: 20180226

67. drawToTexture 绘制函数不工作呢 [ 68%]

drawToTexture 绘制函数不工作呢           let top_rect: Laya.Sprite = new Laya.Sprite();         top_rect.x = 0;         top_rect.y = 0;         top_rect.size(100, 100);         top_rect.graphics.drawRect(0, 0, 100, 100, "#0000FF", "#000000", 1);   ...

来源: Laya_社区 发布时间: 20190730

68. Laya2.0 的3d截图 [ 68%]

...代码了 shot_4_4_4_4():void{         let gl:WebGL2RenderingContext = (Laya.WebGLContext as any).mainContext;         let pixels:Uint8Array = new Uint8Array(gl.drawingBufferWidth*gl.drawingBufferHeight*4);         gl.readPixels(0,0,gl.drawingBufferWidth,gl.drawingBu...

来源: Laya_社区 发布时间: 20200815

69. 3D场景中背景无法透明,版本2.7.1 [ 67%]

... 45, 0), false, false); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex) { material.albedoTexture = tex; })); box.meshRenderer.material = material; } } 附件 : --> laya1.rar 2020-10-21 添加评论 免费帖 --> 分享 微...

来源: Laya_社区 发布时间: 20201021

70. 官方DynamicBatchTest照做为什么动态合不了批? [ 67%]

...3(-40, 0, 0), true, false); camera.addComponent(CameraMoveScript);   Laya.Texture2D.load("res/threeDimen/layabox.png", Laya.Handler.create(this, function (tex) { var radius = new Laya.Vector3(0, 0, 1); var radMatrix = new Laya.Matrix4x4(); var circleCount = 50;   var boxMesh = Laya.PrimitiveMesh.c...

来源: Laya_社区 发布时间: 20191112