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

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

51. 请问如何让自定义Material在渲染周期执行两次不同的shader? [ 91%]

请问如何让自定义Material在渲染周期执行两次不同的shader? 自定义的Material,在每次render时如何按照顺序执行两个shader。 例如想要实现outline的勾线效果,那么我会给两个不同的shader。第一个shader是顶点沿法线放大后给一个底色...

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

52. 材质-BlinnPhong-漫反射贴图 [ 90%]

...hereMesh())); earth2.transform.position = new Laya.Vector3(0.6, 0, 0); var material = new Laya.BlinnPhongMaterial(); //漫反射贴图 material.albedoTexture = Laya.Texture2D.load("../../res/threeDimen/texture/earth.png"); earth2.meshRender.material = material; Laya.timer.frameLoop(1, this, function...

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

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

Laya.BlinnPhongMaterial.RENDERMODE_TRANSPARENT设置透明度不行了? var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D;         box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false);         var mater...

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

54. ambientColor无效 [ 90%]

ambientColor无效 material = new StandardMaterial(); material.diffuseTexture = Texture2D.load("res/earth.png"); material.ambientColor=new Vector(2,2,2); sphere.meshRender.material = material; 我照教程里设置了环境颜色 material.ambientColor=new Vector(2,2,2); 但是无效,模型并没...

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

55. Laya2.5 材质Material类的光照开关属性没有解析BUG [ 90%]

Laya2.5 材质Material类的光照开关属性没有解析BUG 打开引擎2.5.0的源码,找到Material类_parse方法。修改成调试代码如下所示:   输出: laya.d3.js 材质属性未处理: name  ==>  bulletbox laya.d3.js 材质属性未处理: enableLighting  ==>  tr...

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

56. 3d下阴影渲染问题求解 [ 90%]

...localPosition = new Laya.Vector3((i-5)*boxSize*1.1,0,j*boxSize*1.1-1); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); material.albedo = new Laya.Vector4(1,0,1,1); box.meshRender.material = material; box.meshRender.receiveShadow = true; b...

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

57. unity的Physic Material请问如何在laya中使用 [ 90%]

unity的Physic Material请问如何在laya中使用 如题。看到ask里只有一条相关问题,官方答复是一般的参数支持,不支持要在引擎中自己写代码。我没有在引擎中看到关于物理引擎physic material的相关代码,请问如何支持? 我想解决的问...

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

58. laya.d3.core.ui3d.UI3D_API3.0 [ 90%]

...ceForSort enableHit enabled hideFlags id lightmapIndex lightmapScaleOffset material materials prefab ratioIgnor receiveShadow reflectionMode renderMode renderNode renderbitFlag resolutionRate scale sharedMaterial sharedMaterials sprite volume Methods _applyReflection _cloneTo _getCameraDistance _ini...

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

59. 自定义shader-地形shader [ 90%]

...ipt); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { setCustomMaterial(scene.getChildAt(2)); }); function setCustomMaterial(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite3D = spirit3D; var customMaterial = new CustomTerrainMaterial(); customMaterial.setSplatAlph...

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

60. 动态阴影被切割了?为啥没有显示完成的阴影 [ 90%]

...se); instance.transform.position = new Laya.Vector3(posX, posY, posZ); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load(textureUrl); instance.meshRender.material = material; instance.meshRender.castShadow = true; instance.meshRender.receiveShadow = true; inst...

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