大约有 18 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0067 秒)
...必须设置) | null | | effectIntensity | number | 效果整体强度 | 1.0 | | effectScale | number | 效果整体缩放 | 1.0 | 首先是lensFlareData,我们可以使用代码创建,也可以直接在资源面板中新建,如图3-1-3 图3-1-3 镜头光晕属性如图3-1-4所示 参数 类...
来源: Laya3.0_文档 发布时间: 20260105
..., uniformMap:{ u_AlphaTestValue: { type: Float, default: 0.5, range: [0.0, 1.0] }, u_TilingOffset: { type: Vector4, default: [1, 1, 0, 0] }, u_AlbedoColor: { type: Color, default: [1, 1, 1, 1] }, u_AlbedoTexture: { type: Texture2D, options: { define: "ALBEDOTEXTURE" } }, u_NormalTexture: { type: Tex...
来源: Laya3.0_文档 发布时间: 20251010
...sh和UV坐标的形态关系。 (图2-4) UV坐标的面积等于0.0f到1.0f的范围,其中0.0f表示起点,1.0表示终点,下图2-5展示了UV坐标的可视化表达。 (图2-5) VertexColor 当我们从 3D 软件中导出对象时,软件会为要受影响的对象分配颜色,...
来源: Laya3.0_文档 发布时间: 20251010
...addChild(pointLight); //点光源的颜色 pointCom.color = new Laya.Color(1.0, 0.5, 0.0, 1); //设置点光源的范围 pointCom.range = 3.0; pointLight.transform.position = new Laya.Vector3(0.0, 1, 0.0); 三、DirectionLight Direction Light(平行光)与点光区别较大,它有固定的一...
来源: Laya3.0_文档 发布时间: 20251010
...nlitMaterial = new Laya.UnlitMaterial(); mat1.albedoColor = new Laya.Color(1.0, 1.0, 1.0, 1.0); mat1.cull = Laya.RenderState.CULL_NONE; //指定plane的材质为创建的材质 this.plane.getComponent(Laya.MeshRenderer).sharedMaterial = mat1; //指定纹理为摄像机的渲染目标 mat1.albedoText...
来源: Laya3.0_文档 发布时间: 20251010
...的功能版本。 当进行较大功能更新时,可以将版本号从 1.0 升级到 2.0。 如果只是进行小范围的 Bug 修复或优化,则可在原版本号基础上递增,如 1.0 → 1.1。 推荐采用 浮点数格式(如 0.1、1.3、5.0),便于管理和区分。 2.5 输出目...
来源: Laya3.0_文档 发布时间: 20251023
...hild(sphere); // 设置位置 sphere.transform.position = new Laya.Vector3(1.0, 0.25, 0.6); /* 圆柱体 */ let cylinder = new Laya.Sprite3D; let cylinderMesh = cylinder.addComponent(Laya.MeshFilter); let cylinderRender = cylinder.addComponent(Laya.MeshRenderer); // 创建网格 cylinderMesh.sharedM...
来源: Laya3.0_文档 发布时间: 20251010
...下: <meta name='viewport' content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no'/> 以上代码LayaAir引擎中默认添加,并强制添加不得删除。 通过上面这段viewport的配置,那页面在禁止用户手动缩放的同时,也...
来源: Laya3.0_文档 发布时间: 20251010
...aredMaterial as Laya.BlinnPhongMaterial).albedoColor = new Laya.Color(0.0, 1.0, 0.0, 1.0); /* ……省略若干代码 */ 4.4 使用异形物理射线 常规的物理射线是用一条射线来检测碰撞,LayaAir引擎中也提供了与物理射线检测类似的功能,但采用的是自定义...
来源: Laya3.0_文档 发布时间: 20251010
...all(lessThan(writeIndex, dims))) { vec3 acc = vec3(0.0); float invFilter = 1.0 / float(filterDim); for (int f = 0; f < filterDim; ++f) { int i = center + f - filterOffset; acc += invFilter * tile[r][i]; } imageStore(outputTex, writeIndex, vec4(acc, 1.0)); } } } } GLSL End 该示例展示了 SSBO ...
来源: Laya3.0_文档 发布时间: 20260131