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

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

371. laya.d3.core.material.PBRMaterial_API3.0 [ 38%]

...ters value: number Returns void anisotropyTexture get anisotropyTexture(): Texture2D set anisotropyTexture(value: Texture2D): void Defined in laya/d3/core/material/PBRMaterial.ts:532 anisotropy 强度贴图 Returns Texture2D Defined in laya/d3/core/material/PBRMaterial.ts:536 anisotropy 强度贴图...

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

372. 继承自Laya.BaseMaterial并且自定义Shader的的自定义材质如何设置透明渲染 [ 38%]

...v_Normal; varying vec2 uv; varying vec4 worldPos; void main() { vec4 col = texture2D(u_MainTex, uv); //gl_FragColor = vec4(worldPos.xyz, 1.0); float d = distance(worldPos.xyz, vec3(.0, .0, .0)) * 0.15; col.xyz *= d; col.xyz *= u_MainCol; col.a = 0.5; gl_FragColor = col; }`; var customShader:Laya.Sha...

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

373. laya.d3.core.material.PBRStandardMaterial_API3.0 [ 37%]

...ters value: number Returns void anisotropyTexture get anisotropyTexture(): Texture2D set anisotropyTexture(value: Texture2D): void Inherited from PBRMaterial.anisotropyTexture Defined in laya/d3/core/material/PBRMaterial.ts:532 anisotropy 强度贴图 Returns Texture2D Inherited from PBRMaterial.ani...

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

374. 3d资源释放的问题 [ 37%]

...景里,3d场景里,3d场景里,我先dispose或者destory掉了某个texture2d,然后我尝试再去加载显示这张图,怎么也显示不了,具体代码如下: 这个函数尝试创建一个lh然后显示出来,然后删除同时清理一些资源,第二次调用这个函数的...

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

375. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 37%]

...dardMaterial = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; //加载3D资源 Laya.loader.create(["res/LayaScene_girl/girl.lh"],Laya.Handler.create(this,this.on3DComplete)); } /*加载3D资源完成回调*/ private ...

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

376. [BUG]刚体约束问题,移动后约束混乱! [ 36%]

...0);     var planeMat = new Laya.BlinnPhongMaterial();     Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function (tex) {       planeMat.albedoTexture = tex;     }));     //设置纹理平铺和偏移     var tilingOffset = pl...

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

377. 高级应用-渲染纹理 [ 35%]

...th.Vector4; import laya.d3.resource.RenderTexture; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BaseMesh; import laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.resource.Texture; import laya.ui.B...

来源: Laya_示例 发布时间: 20251209

378. laya.html.dom.HTMLIframeElement_API3.0 [ 35%]

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

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

379. Mesh网格-自定义网格 [ 35%]

...laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.Texture2D; import laya.d3.resource.models.BoxMesh; import laya.d3.resource.models.CapsuleMesh; import laya.d3.resource.models.CylinderMesh; import laya.d3.resource.models.Mesh; import laya.d3.resource.models.PlaneMesh; import...

来源: Laya_示例 发布时间: 20251209

380. laya.html.dom.HTMLDivElement_API3.0 [ 35%]

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

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