大约有 24 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0047 秒)
...sh和UV坐标的形态关系。 (图2-4) UV坐标的面积等于0.0f到1.0f的范围,其中0.0f表示起点,1.0表示终点,下图2-5展示了UV坐标的可视化表达。 (图2-5) VertexColor 当我们从 3D 软件中导出对象时,软件会为要受影响的对象分配颜色,...
来源: Laya3.0_文档 发布时间: 20251010
..., 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
...SampleFactor; //设置模糊材质参数 var texSize:Vector4 = new Vector4(1.0/viewPort.width,1.0/viewPort.height,viewPort.width,downSampleheigh); shaderValue.setNumber(BlurEffect.SHADERVALUE_DOWNSAMPLEVALUE,1); shaderValue.setVector(BlurEffect.SHADERVALUE_TEXELSIZE,texSize); //创建降采样Render...
来源: Laya3.0_文档 发布时间: 20251010
...(ms)。 PositionX Float 0.5 图片中心点的水平位置百分比 (0.0 ~ 1.0)。0.5 为水平居中。 PositionY Float 0.3 图片中心点的垂直位置百分比 (0.0 ~ 1.0)。0.3 表示位于顶部向下 30% 的位置。 配置示例 [waterMark] Enabled=true BackgroundColor='#000000' Image=image...
来源: Laya3.0_文档 发布时间: 20251128
...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
...er).material as Laya.BlinnPhongMaterial).albedoColor = new Laya.Color(0.0, 1.0, 0.0, 1.0);//绿色 } /** * 发生持续物理碰撞时的3D物理碰撞器事件(不适用2D),也就是碰撞生命周期内的第二次碰撞到碰撞结束前,每帧都在触发调用的事件方法。 * 尽量...
来源: Laya3.0_文档 发布时间: 20251010
...; intensity = 0.2 + t * 0.8; } else if (progress < 0.708) { intensity = 1.0; } else if (progress < 0.833) { const t = (progress - 0.708) / 0.125; intensity = 1.0 - t * 0.8; } else { intensity = 0.2; } this.lightComp.intensity = intensity; } } 示例中的变暗效果如动图3-1所示, (...
来源: Laya3.0_文档 发布时间: 20251010
...er).material as Laya.BlinnPhongMaterial).albedoColor = new Laya.Color(0.0, 1.0, 0.0, 1.0);//绿色 } /** * 发生持续物理碰撞时的3D物理碰撞器事件(不适用2D),也就是碰撞生命周期内的第二次碰撞到碰撞结束前,每帧都在触发调用的事件方法。 * 尽量...
来源: 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