大约有 40 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0035 秒)
...** 获取渲染状态。获取后还能对此进行修改。 ```typescript renderState(): RenderState ``` ### 1.多ShaderPass简单示例 下方示例来自于官方多Pass描边示例([demo示例](http://layaair2.ldc2.layabox.com/demo2/?language=ch&category=3d&group=Shader&name=Shader_MultiplePas...
来源: Laya2.0_文档 发布时间: 20210715
...** 获取渲染状态。获取后还能对此进行修改。 ```typescript renderState(): RenderState ``` ### 1.多ShaderPass简单示例 下方示例来自于官方多Pass描边示例([demo示例](http://layaair2.ldc2.layabox.com/demo2/?language=ch&category=3d&group=Shader&name=Shader_MultiplePas...
来源: Laya2.0_文档 发布时间: 20210715
...** 获取渲染状态。获取后还能对此进行修改。 ```typescript renderState(): RenderState ``` ### 1.多ShaderPass简单示例 下方示例来自于官方多Pass描边示例([demo示例](http://layaair2.ldc2.layabox.com/demo2/?language=ch&category=3d&group=Shader&name=Shader_MultiplePas...
来源: Laya2.0_文档 发布时间: 20210714
...r ![Mesh Filter](./img/components/Inspector-MeshFilter.png) 1. Mesh - Mesh Renderer ![Mesh Renderer](./img/components/class-MeshRenderer-0.png) 1. Materials - Size - Element 2. Lightmap Static - Lightmaps - Baked Lightmap - Lightmap Index - Tiling X - Tiling Y - Offset X - Offset Y - Skinned Mesh Re...
来源: Laya2.0_文档 发布时间: 20200822
...下面代码 ```typescript //此示例中我们想查看UpdateAllScripte、Render、ReSiteState的性能分析 update(){ //开始记录调用 Laya.PerformancePlugin.begainSample("Update"); Laya.PerformancePlugin. begainSample("Update/updateAllScript"); UpdateAllScripte(); Laya.PerformancePlugin.endS...
来源: Laya2.0_文档 发布时间: 20210714
...下: ```typescript var buf:CommandBuffer = new CommandBuffer(); buf.setRenderTarget(renderTexture); buf.drawRender(renders[i],materials[i],0); ``` #### 2、需要将CBuffer绑定到Camera的渲染事件中,目前laya支持的Camera事件如下: ```typescript BeforeForwardOpaque = 0,//在渲染...
来源: Laya2.0_文档 发布时间: 20210715
...ENE }; //定义BLINNPHONG的uniformMap var stateMap = { 's_Cull': Shader3D.RENDER_STATE_CULL, 's_Blend': Shader3D.RENDER_STATE_BLEND, 's_BlendSrc': Shader3D.RENDER_STATE_BLEND_SRC, 's_BlendDst': Shader3D.RENDER_STATE_BLEND_DST, 's_DepthTest': Shader3D.RENDER_STATE_DEPTH_TEST, 's_DepthWrite': Shader3...
来源: Laya2.0_文档 发布时间: 20210714
...; //定义BLINNPHONG的uniformMap var stateMap: any = { 's_Cull': Shader3D.RENDER_STATE_CULL, 's_Blend': Shader3D.RENDER_STATE_BLEND, 's_BlendSrc': Shader3D.RENDER_STATE_BLEND_SRC, 's_BlendDst': Shader3D.RENDER_STATE_BLEND_DST, 's_DepthTest': Shader3D.RENDER_STATE_DEPTH_TEST, 's_DepthWrite': Shader3...
来源: Laya2.0_文档 发布时间: 20210715
...ENE }; //定义BLINNPHONG的uniformMap var stateMap = { 's_Cull': Shader3D.RENDER_STATE_CULL, 's_Blend': Shader3D.RENDER_STATE_BLEND, 's_BlendSrc': Shader3D.RENDER_STATE_BLEND_SRC, 's_BlendDst': Shader3D.RENDER_STATE_BLEND_DST, 's_DepthTest': Shader3D.RENDER_STATE_DEPTH_TEST, 's_DepthWrite': Shader3...
来源: Laya2.0_文档 发布时间: 20210715
...unction(type) { alert(type) }); } ``` AS代码如下: ```javascript if ( Render.isConchApp) { Browser.window["conch"].setNetworkEvtFunction(function(type):void { alert(type) }); } ``` **返回值类为int类型** ``` NET_NO = 0; NET_WIFI = 1; NET_2G = 2; NET_3G = 3; NET_4G = 4; NET_YES = 5; ``` **...
来源: Laya2.0_文档 发布时间: 20210714