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

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

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

...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

182. rigidBody.applyForce 物体不会移动 [ 48%]

...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; //设置文本显示框位置 this.text.x = Laya.stage.wi...

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

183. 材质的功能介绍(ActionScript-3D基础(AS3)-LayaAir3D之Material材质) [ 48%]

...纹理 pbrTexture = Loader.getRes("res/threeDimen/texture/earth.png") as Texture2D; //为PBRStandard材质设置漫反射贴图 pbrStandardMaterial.albedoTexture = pbrTexture; //修改导出球的材质 sphere.meshRenderer.material = pbrStandardMaterial; ``` ![](img/5.png)(图5) ### 3.是否能接...

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

184. 材质的功能介绍(TypeScript-3D基础(TS)-LayaAir3D之Material材质) [ 48%]

...brTexture = Laya.Loader.getRes("res/threeDimen/texture/earth.png") as Laya.Texture2D; //为PBRStandard材质设置漫反射贴图 this.pbrStandardMaterial.albedoTexture = this.pbrTexture; //修改导出球的材质 this.sphere.meshRenderer.material = this.pbrStandardMaterial; ``` ![](img/5.png)(图5...

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

185. 2D拖尾渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

...Laya.TrailTextureMode.Stretch; //设置纹理 this._trail2D.texture = Laya.Texture2D.whiteTexture; // Laya.loader.load("此处填写纹理的路径").then((res) => { // this._trail2D.texture = res; // }); //设置线段颜色 this._trail2D.color = new Laya.Color(1, 1, 1, 1); } //控制物体向...

来源: Laya3.0_文档 发布时间: 20251010

186. 关于平行光渲染投影问题,求解惑 [ 47%]

...rdMaterial(); //材质加载漫反射贴图 material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); //为模型赋材质(单个材质可赋给多个模型) sphere.meshRender.material = material; box.meshRender.material = material; } } new LayaAir3D(); 2018-03-02 1 1 分享 微博 QZONE...

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

187. laya.d3.core.scene.Scene3D_API3.0 [ 46%]

...number, canvasHeight: number, offsetX: number, offsetY: number, rt?: RenderTexture2D | null): Texture | RenderTexture2D Inherited from Text.drawToTexture Defined in laya/display/Sprite.ts:1259 绘制到一个Texture对象 Parameters canvasWidth: number canvasHeight: number offsetX: number offsetY: n...

来源: Laya3.0_api 发布时间: 20231115

188. 粒子动画透明度问题 [ 46%]

...inate;\nuniform sampler2D u_texture;\n\nvoid main()\n{ \n  gl_FragColor=texture2D(u_texture,v_TextureCoordinate)*v_Color;\n    gl_FragColor.xyz *= v_Color.w;\n}";}     ]);     return ParticleShader; })(Shader) 2018-12-25 0 0 分享 微博 QZONE 微信 veined 赞同来自: 我也遇到...

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

189. 自定义3D Shader · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...form变量。 3.1 Uniform常见变量类型 Uniform变量的常见类型:Texture2D,Color,Vector2,Vector3,Vector4,Bool,Float,Matrix4x4,TextureCube Texture2D用于2D纹理采样的图片类型,图片本地支持格式:JPG,PNG Color 颜色类型,为四个Float类型组成的...

来源: Laya3.0_文档 发布时间: 20251010

190. Laya3D 中如何解决3D模型上添加文本的问题,类似Unity中的3DText [ 45%]

...有文字的贴图,贴上去, 2是把文字绘制成图,然后传给texture2d 贴上去 2018-08-14 0 2 分享 微博 QZONE 微信 Constantine 赞同来自: 那请问用方法2 如何在laya中实现把文字绘制成图? 2018-09-10 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回...

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