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

大约有 12 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0013 秒)

11. Shader预编译解决方案 [ 77%]

...a.ShaderPass -> withCompile(compileDefine) {      if (Shader3D.debugMode)//开启debug编译shader时生成打印shader参数         this._addDebugShaderVariantCollection(compileDefine);          }  debugShader : Laya.Shader debugShader : Laya.SubShader  Laya.Shade...

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

12. CommandBuffer_Outline 每次 addCommandBuffer都会永久增加10Gpu,removed掉相机事件也不会减少 [ 40%]

..._SceneManager.player.playerCamera;             //Laya.Shader3D.debugMode = true;         }     }      public createDrawMeshCommandBuffer(camera:Laya.Camera, renders:Laya.BaseRender[] , materials:Laya.Material[]):Laya.CommandBuffer{          if(this.renders...

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