大约有 1,202 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0061 秒)
Laya_社区(629) Laya3.0_api(207) Laya2.0_文档(119) Laya_示例(59) Laya3.0_文档(57) laya_api(46) Laya2.0_api(44) Laya2.0_示例(41)
...rue, the texture will be flipped vertical. Default is false. * @param clearColor Optional. If provided, the texture will be cleared to this color before drawing. Default is null. * @returns The drawn RenderTexture2D object. * @ZH 绘制当前对象到一个 Texture 对象上。 * @param canvasWidth ...
来源: Laya_社区 发布时间: 20250827
...rited Externals Only exported Menu Globals "laya/d3/core/render/PostEffect/ColorGradEffect" ColorGradEffect Class ColorGradEffect ColorGradEffect 类用于创建调色Effect Hierarchy PostProcessEffect ColorGradEffect Index Constructors constructor Properties _lutTex SHADERDEFINE_ACES SHADERDEFINE_C...
来源: Laya3.0_api 发布时间: 20231115
...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(compassImgPath, Handler.create(this, this.init)); } init() { const Gyroscope = Laya.Gyroscope, Event = Laya.Event; // 创建罗盘 this.createCompass(); // 创建方位指示器 this.create...
来源: Laya2.0_示例 发布时间: 20251218
...360之间随机,可以看到左边粒子有各个方向的旋转 Start Color:每个粒子的初始颜色 (图3.1.1-4) 展示了Start Color为红色的效果 注意,即便在StartColor中规定了粒子为红色,显示出来的效果也不是纯红色,粒子与粒子,天空,红色...
来源: Laya3.0_文档 发布时间: 20251010
...360之间随机,可以看到左边粒子有各个方向的旋转 Start Color:每个粒子的初始颜色 (图3.1.1-4) 展示了Start Color为红色的效果 注意,即便在StartColor中规定了粒子为红色,显示出来的效果也不是纯红色,粒子与粒子,天空,红色...
来源: Laya3.0_文档 发布时间: 20250104
...; directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); //灯光开启阴影 directionLight.shadow = true; //可见阴影距离 directionLight.shadowDistance = 3; //生成阴影贴图尺寸 directionLight.shadowResolution = 2048; //生成阴影...
来源: Laya_示例 发布时间: 20251218
...tor() { super(); this.setShaderName("CustomCurveShader"); this.enableVertexColor = false; this.albedoColor = new Laya.Vector4(0.0, 0.0, 0.0, 0.0); this.xoffset = 15.0; this.yoffset = -15.0; this.zdistance = 200.0; } public static initShader() { var attributeMap: object = { "a_Position": Laya.VertexM...
来源: Laya_社区 发布时间: 20201009
...ces UV` | 忽略顶点UV(忽略模型的UV贴图) | | `Ignore Vertices Color` | 忽略顶点颜色(忽略模型的顶点颜色信息) | | `Ignore Vertices Normal` | 忽略顶点法线(忽略模型的法线信息) | | `Ignore Vertices Tangent` | 忽略顶点切线信息(忽略模型的...
来源: Laya2.0_文档 发布时间: 20210714
...Tangent 我写的是 Laya.VertexMesh.getVertexDeclaration("POSITION,NORMAL,COLOR,TANGENT"); 顶点实际塞进去的数据位数肯定对的。 然后在shader里访问vertex.vertexColor都是没问题的,但vertex.vertexTangent就不行了。 不叫vertexTangent吗?那叫什么?最好用户...
来源: Laya_社区 发布时间: 20250408
...问题请先登录 发起人 会飞的提莫 相关问题 2.0 drawTexture color参数无效 怎样获取浏览器地址传过来的GET参数 参照技术文档自定义Shader写的TypeScript版本,运行后 Sprite 显示尺寸不对,帮忙看下哪里要调整? 对象池对类怎么传参数 L...
来源: Laya_社区 发布时间: 20200409