大约有 9 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
..., 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
...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
...ion() { // Fill the buffer with white noise; //just random values between -1.0 and 1.0 for (var channel = 0; channel < channels; channel++) { // This gives us the actual ArrayBuffer that contains the data var nowBuffering = myArrayBuffer.getChannelData(channel); for (var i = 0; i < frameCount;...
来源: Laya3.0_文档 发布时间: 20251010
...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
...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
...,是LayaDCC的升级版,主要特点: DCC2.0是完全重构的,与1.0完全不同了。 1、更新文件的时候不再使用原始目录,文件名字变成了文件内容的hash,确保不会被CDN缓存。 2、支持App打包资源。 3、支持通过zip提供差异更新。 4、支持...
来源: Laya3.0_文档 发布时间: 20251010
...it的alpha值会叠加AlbedoColor.a的值,我们的AlbedoColor的alpha为1.0,此时不会出现全部的片段都被丢弃的情况。 (5)TilingOffset缩放偏移 用来设置物体模型UV的缩放与偏移,与Blinn-Phong着色器的效果相同,如动图2-1-2-5-1所示: 动图2-1-2-5...
来源: Laya3.0_文档 发布时间: 20251011
... * <p>注意:2.0改动:多次调用,只会显示一个图片(1.0会显示多个图片),x,y,width,height参数取消。</p> * @param url 图片地址。 * @param complete (可选)加载完成回调。 * @return 返回精灵对象本身。 */ loadImage(url: string, complete?:...
来源: Laya3.0_文档 发布时间: 20251010